|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.MultiSplitLayout.Node
org.jdesktop.swingx.MultiSplitLayout.Split
public static class MultiSplitLayout.Split
Defines a vertical or horizontal subdivision into two or more tiles.
Constructor Summary | |
---|---|
MultiSplitLayout.Split()
Default constructor to support xml (de)serialization and other bean spec dependent ops. |
|
MultiSplitLayout.Split(MultiSplitLayout.Node... children)
|
Method Summary | |
---|---|
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. |
List<MultiSplitLayout.Node> |
getChildren()
Returns this Split node's children. |
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(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(String name)
Set the value of the name property. |
void |
setRowLayout(boolean rowLayout)
Set the rowLayout property. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class org.jdesktop.swingx.MultiSplitLayout.Node |
---|
getBounds, getParent, getWeight, 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 |
---|
public MultiSplitLayout.Split(MultiSplitLayout.Node... children)
public MultiSplitLayout.Split()
Method Detail |
---|
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 List<MultiSplitLayout.Node> getChildren()
setChildren(java.util.List)
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(List<MultiSplitLayout.Node> children)
children
- List of children
IllegalArgumentException
- if children is nullgetChildren()
public void setChildren(MultiSplitLayout.Node... children)
children
- array of children
IllegalArgumentException
- if children is nullgetChildren()
public final MultiSplitLayout.Node lastWeightedChild()
getChildren()
,
MultiSplitLayout.Node.getWeight()
public String getName()
setName(java.lang.String)
public void setName(String name)
name
- value of the name property
IllegalArgumentException
- if name is nullpublic String toString()
java.lang.Object
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())
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |