|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.netanel.swt.matrix.Grouping.Node
public static class Grouping.Node
Represent a node in the grouping hierarchy. Implements Builder pattern.
Field Summary | |
---|---|
static int |
COLLAPSED
the node is initially collapsed |
protected Color |
lineColor
|
static int |
PERMANENT
Makes the node not collapse-able. |
static int |
REMAIN
Makes the node to stay visible when the parent is collapsed. |
protected int |
separatorLineWidth
|
static int |
SUMMARY
The node is visible only when node is collapsed |
Constructor Summary | |
---|---|
Grouping.Node(java.lang.String caption,
Grouping.Node... children)
|
|
Grouping.Node(java.lang.String caption,
int options,
Grouping.Node... children)
|
Method Summary | |
---|---|
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 |
separator(int lineWidth,
Color lineColor)
Defines the line at the end of the current node |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int REMAIN
public static final int SUMMARY
public static final int PERMANENT
public static final int COLLAPSED
protected int separatorLineWidth
protected Color lineColor
Constructor Detail |
---|
public Grouping.Node(java.lang.String caption, Grouping.Node... children)
public Grouping.Node(java.lang.String caption, int options, Grouping.Node... children)
Method Detail |
---|
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
property
public Grouping.Node setCollapsedAll(boolean newState)
newState
- state to set for collapsed
property
public boolean isCollapsed()
true
if this node is collapsed, or false
otherwise.
true
if this node is collapsed, or false
otherwisepublic Grouping.Node separator(int lineWidth, Color lineColor)
lineWidth
- lineColor
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |