public static class Grouping.Node
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
COLLAPSED
the node is initially collapsed
|
static int |
PERMANENT
Makes the node not collapse-able.
|
static int |
REMAIN
Makes the node to stay visible when the parent is collapsed.
|
static int |
SUMMARY
The node is visible only when node is collapsed
|
Constructor and Description |
---|
Grouping.Node(java.lang.String caption,
Grouping.Node... children) |
Grouping.Node(java.lang.String caption,
int options,
Grouping.Node... children) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCaption()
Returns caption of this node.
|
java.util.List<Grouping.Node> |
getChildren()
Return list of children of this node.
|
Grouping.Node |
getParent()
Returns parent of this node.
|
boolean |
hasChildren()
Return
true if this node has children, or false otherwise. |
boolean |
isCollapsed()
Returns
true if this node is collapsed, or false otherwise. |
Grouping.Node |
setCollapsed(boolean newState)
Sets the collapsed state of this node to the given value.
|
Grouping.Node |
setCollapsedAll(boolean newState)
Sets the collapsed state of this node
and all related nodes on the lower level to the given value.
|
java.lang.String |
toString() |
public static final int REMAIN
public static final int SUMMARY
public static final int PERMANENT
public static final int COLLAPSED
public Grouping.Node(java.lang.String caption, Grouping.Node... children)
public Grouping.Node(java.lang.String caption, int options, Grouping.Node... children)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean hasChildren()
true
if this node has children, or false otherwise.true
if this node has children, or false otherwisepublic java.util.List<Grouping.Node> getChildren()
public Grouping.Node getParent()
public java.lang.String getCaption()
public Grouping.Node setCollapsed(boolean newState)
newState
- state to set for collapsed
propertypublic Grouping.Node setCollapsedAll(boolean newState)
newState
- state to set for collapsed
propertypublic boolean isCollapsed()
true
if this node is collapsed, or false
otherwise.true
if this node is collapsed, or false
otherwiseCopyright © 2011 netanel.pl. All Rights Reserved.