org.jdesktop.swingx
Class MultiSplitLayout.Leaf

java.lang.Object
  extended by org.jdesktop.swingx.MultiSplitLayout.Node
      extended by org.jdesktop.swingx.MultiSplitLayout.Leaf
Enclosing class:
MultiSplitLayout

public static class MultiSplitLayout.Leaf
extends MultiSplitLayout.Node

Models a java.awt Component child.


Constructor Summary
MultiSplitLayout.Leaf()
          Create a Leaf node.
MultiSplitLayout.Leaf(String name)
          Create a Leaf node with the specified name.
 
Method Summary
 String getName()
          Return the Leaf's name.
 void setName(String name)
          Set the value of the name property.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class org.jdesktop.swingx.MultiSplitLayout.Node
getBounds, getParent, getWeight, isVisible, nextSibling, previousSibling, setBounds, setParent, setVisible, setWeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiSplitLayout.Leaf

public MultiSplitLayout.Leaf()
Create a Leaf node. The default value of name is "".


MultiSplitLayout.Leaf

public MultiSplitLayout.Leaf(String name)
Create a Leaf node with the specified name. Name can not be null.

Parameters:
name - value of the Leaf's name property
Throws:
IllegalArgumentException - if name is null
Method Detail

getName

public String getName()
Return the Leaf's name.

Returns:
the value of the name property.
See Also:
setName(java.lang.String)

setName

public void setName(String name)
Set the value of the name property. Name may not be null.

Parameters:
name - value of the name property
Throws:
IllegalArgumentException - if name is null

toString

public String toString()
Description copied from class: java.lang.Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Overrides:
toString in class Object
Returns:
a string representation of the object.