java.lang.Object
org.jdesktop.swingx.MultiSplitLayout.Node
org.jdesktop.swingx.MultiSplitLayout.Split
- Enclosing class:
MultiSplitLayout
Defines a vertical or horizontal subdivision into two or more
tiles.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns this Split node's children.boolean
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.final MultiSplitLayout.Node
Convenience method that returns the last child whose weight is > 0.0.void
setChildren
(List<MultiSplitLayout.Node> children) Set's the children property of this Split node.void
setRowLayout
(boolean rowLayout) Set the rowLayout property.toString()
Methods inherited from class org.jdesktop.swingx.MultiSplitLayout.Node
getBounds, getParent, getWeight, nextSibling, previousSibling, setBounds, setParent, setWeight
-
Constructor Details
-
Split
public Split()
-
-
Method Details
-
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
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:
-
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
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:
IllegalArgumentException
- if children is null- See Also:
-
lastWeightedChild
Convenience method that returns the last child whose weight is > 0.0.- Returns:
- the last child whose weight is > 0.0.
- See Also:
-
toString
-