|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.util.chef.HierarchicalDisplayItem
Represents a HierarchicalObject for the purposes of displaying it in a HierarchicalDisplayList. Keeps track of the object's depth in the hierarchy, whether it's selected, and whether or not it's open.
Typical Usage:
Constructed by passing it a HierarchicalObject. Aside from the methods this class provides, the HierarchicalObject's own properties can be accessed by calling getObject and invoking its methods.
| Constructor Summary | |
HierarchicalDisplayItem(HierarchicalObject o)
|
|
| Method Summary | |
int |
getDepth()
Get the depth in the hierarchy. |
HierarchicalObject |
getObject()
Get the delegate HierarchicalObject. |
boolean |
isOpen()
Get whether or not the item is open. |
boolean |
isSelected()
Return whether or not this item is selected. |
void |
setDepth(int value)
Set the depth in the hierarchy. |
void |
setObject(HierarchicalObject o)
Set the delegate HierarchicalObject. |
void |
setOpen(boolean value)
Set whether or not the item is open. |
void |
setSelected(boolean sel)
Set whether or not this item is selected. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HierarchicalDisplayItem(HierarchicalObject o)
| Method Detail |
public HierarchicalObject getObject()
public void setObject(HierarchicalObject o)
public void setSelected(boolean sel)
sel - true if selected, false if notpublic boolean isSelected()
public int getDepth()
public void setDepth(int value)
value - the new depth in the hierarchypublic boolean isOpen()
public void setOpen(boolean value)
value - whether or not the item is open.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||