DefaultSplitPaneModel
, MultiSplitLayout.ColSplit
, MultiSplitLayout.RowSplit
public static class MultiSplitLayout.Split extends MultiSplitLayout.Node
Constructor | Description |
---|---|
Split() |
Default constructor to support xml (de)serialization and other bean spec dependent ops.
|
Split(MultiSplitLayout.Node... children) |
Modifier and Type | Method | Description |
---|---|---|
void |
checkDividers(MultiSplitLayout.Split split) |
Check the dividers to ensure that redundant dividers are hidden and do
not interfere in the layout, for example when all the children of a split
are hidden (the split is then invisible), so two dividers may otherwise
appear next to one another.
|
java.util.List<MultiSplitLayout.Node> |
getChildren() |
Returns this Split node's children.
|
java.lang.String |
getName() |
Return the Leaf's name.
|
void |
hide(MultiSplitLayout.Node target) |
Change a node to being hidden.
|
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.
|
boolean |
isVisible() |
Determines whether this node should be visible when its
parent is visible.
|
MultiSplitLayout.Node |
lastWeightedChild() |
Convenience method that returns the last child whose weight
is > 0.0.
|
void |
remove(MultiSplitLayout.Node n) |
Remove a node from the layout.
|
void |
replace(MultiSplitLayout.Node target,
MultiSplitLayout.Node replacement) |
Replace one node with another.
|
void |
restoreDividers(MultiSplitLayout.Split split) |
Restore any of the hidden dividers that are required to separate visible nodes
|
void |
setChildren(java.util.List<MultiSplitLayout.Node> children) |
Set's the children property of this Split node.
|
void |
setChildren(MultiSplitLayout.Node... children) |
Convenience method for setting the children of this Split node.
|
void |
setName(java.lang.String name) |
Set the value of the name property.
|
void |
setRowLayout(boolean rowLayout) |
Set the rowLayout property.
|
java.lang.String |
toString() |
getBounds, getParent, getWeight, nextSibling, previousSibling, setBounds, setParent, setVisible, setWeight
public Split(MultiSplitLayout.Node... children)
public Split()
public boolean isVisible()
isVisible
in class MultiSplitLayout.Node
true
if the node is visible,
false
otherwisepublic boolean isRowLayout()
setRowLayout(boolean)
public void setRowLayout(boolean rowLayout)
rowLayout
- true for horizontal row layout, false for columnisRowLayout()
public java.util.List<MultiSplitLayout.Node> getChildren()
setChildren(java.util.List<org.jdesktop.swingx.MultiSplitLayout.Node>)
public void remove(MultiSplitLayout.Node n)
n
- the node to be removedpublic void replace(MultiSplitLayout.Node target, MultiSplitLayout.Node replacement)
target
- the node being replacedreplacement
- the replacement nodepublic void hide(MultiSplitLayout.Node target)
target
- the node to hidepublic void checkDividers(MultiSplitLayout.Split split)
split
- the split to checkpublic void restoreDividers(MultiSplitLayout.Split split)
split
- the node to checkpublic void setChildren(java.util.List<MultiSplitLayout.Node> children)
children
- List of childrenjava.lang.IllegalArgumentException
- if children is nullgetChildren()
public void setChildren(MultiSplitLayout.Node... children)
children
- array of childrenjava.lang.IllegalArgumentException
- if children is nullgetChildren()
public final MultiSplitLayout.Node lastWeightedChild()
getChildren()
,
MultiSplitLayout.Node.getWeight()
public java.lang.String getName()
setName(java.lang.String)
public void setName(java.lang.String name)
name
- value of the name propertyjava.lang.IllegalArgumentException
- if name is nullpublic java.lang.String toString()
toString
in class java.lang.Object