com.vlsolutions.swing.docking.ws
Class WSDockKey

java.lang.Object
  extended by com.vlsolutions.swing.docking.ws.WSDockKey

public class WSDockKey
extends Object

Defines a key associated to a dockable in a workspace. The internal "key" will have to match the one of a DockKey when the worspace is applied to a DockingContext.

example : if your application uses a dockable with DockKey k = new DockKey("testDockable");
than your corresponding WSDockKey will be wsdk = new WSDockKey("testDockable");

Design note : We use this class insted of DockKey because sometimes dockkeys are lazily created (at dockable creation) and thus aren't already available when specifying a workspace.


Constructor Summary
WSDockKey(String key)
           
 
Method Summary
 boolean equals(Object o)
           
 DockingConstants.Hide getAutoHideBorder()
          Returns the autohide border of this dockable, or null if not set
 String getKey()
          returns the inner key of this object (which must match a DockKey's 'key' instance variable)
 int hashCode()
          returns this object's hashcode
 void setAutoHideBorder(DockingConstants.Hide border)
          Updates the autohide border property
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WSDockKey

public WSDockKey(String key)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
returns this object's hashcode

Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getKey

public String getKey()
returns the inner key of this object (which must match a DockKey's 'key' instance variable)


getAutoHideBorder

public DockingConstants.Hide getAutoHideBorder()
Returns the autohide border of this dockable, or null if not set


setAutoHideBorder

public void setAutoHideBorder(DockingConstants.Hide border)
Updates the autohide border property



© Copyright 2004-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications