org.jdesktop.swingx
Class MultiSplitLayout.Split

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

public static class MultiSplitLayout.Split
extends MultiSplitLayout.Node

Defines a vertical or horizontal subdivision into two or more tiles.


Constructor Summary
MultiSplitLayout.Split()
           
 
Method Summary
 java.util.List<MultiSplitLayout.Node> getChildren()
          Returns this Split node's children.
 boolean isRowLayout()
          Returns true if the this Split's children are to be laid out in a row: all the same height, left edge equal to the previous Node's right edge.
 MultiSplitLayout.Node lastWeightedChild()
          Convenience method that returns the last child whose weight is > 0.0.
 void setChildren(java.util.List<MultiSplitLayout.Node> children)
          Set's the children property of this Split node.
 void setRowLayout(boolean rowLayout)
          Set the rowLayout property.
 java.lang.String toString()
           
 
Methods inherited from class org.jdesktop.swingx.MultiSplitLayout.Node
getBounds, getParent, getWeight, nextSibling, previousSibling, setBounds, setParent, setWeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiSplitLayout.Split

public MultiSplitLayout.Split()
Method Detail

isRowLayout

public boolean isRowLayout()
Returns true if the this Split's children are to be laid out in a row: all the same height, left edge equal to the previous Node's right edge. If false, children are laid on in a column.

Returns:
the value of the rowLayout property.
See Also:
setRowLayout(boolean)

setRowLayout

public void setRowLayout(boolean rowLayout)
Set the rowLayout property. If true, all of this Split's children are to be laid out in a row: all the same height, each node's left edge equal to the previous Node's right edge. If false, children are laid on in a column. Default value is true.

Parameters:
rowLayout - true for horizontal row layout, false for column
See Also:
isRowLayout()

getChildren

public java.util.List<MultiSplitLayout.Node> getChildren()
Returns this Split node's children. The returned value is not a reference to the Split's internal list of children

Returns:
the value of the children property.
See Also:
setChildren(java.util.List)

setChildren

public void setChildren(java.util.List<MultiSplitLayout.Node> children)
Set's the children property of this Split node. The parent of each new child is set to this Split node, and the parent of each old child (if any) is set to null. This method defensively copies the incoming List. Default value is an empty List.

Parameters:
children - List of children
Throws:
java.lang.IllegalArgumentException - if children is null
See Also:
getChildren()

lastWeightedChild

public final MultiSplitLayout.Node lastWeightedChild()
Convenience method that returns the last child whose weight is > 0.0.

Returns:
the last child whose weight is > 0.0.
See Also:
getChildren(), MultiSplitLayout.Node.getWeight()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2004-2004-2006 IME - USP. All Rights Reserved.