|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.grid.AbstractNode com.jidesoft.grid.AbstractExpandable com.jidesoft.grid.DefaultExpandable
public class DefaultExpandable
A default implementation of Expandable
.
Field Summary | |
---|---|
protected List<?> |
_children
The children. |
static Enumeration<Object> |
EMPTY_ENUMERATION
|
static String |
PROPERTY_CHILDREN
|
Fields inherited from class com.jidesoft.grid.AbstractExpandable |
---|
_expandable, _expanded |
Fields inherited from class com.jidesoft.grid.AbstractNode |
---|
_parent, PROPERTY_PARENT |
Fields inherited from interface com.jidesoft.grid.Expandable |
---|
PROPERTY_EXPANDABLE, PROPERTY_EXPANDED |
Fields inherited from interface com.jidesoft.grid.Node |
---|
PROPERTY_ADJUSTING |
Constructor Summary | |
---|---|
DefaultExpandable()
|
|
DefaultExpandable(List<Row> children)
|
Method Summary | |
---|---|
Enumeration |
breadthFirstEnumeration()
Creates and returns an enumeration that traverses the subtree rooted at this node in breadth-first order. |
Enumeration |
depthFirstEnumeration()
Creates and returns an enumeration that traverses the subtree rooted at this node in depth-first order. |
List<?> |
getChildren()
Gets the list of children. |
Enumeration |
postorderEnumeration()
Creates and returns an enumeration that traverses the subtree rooted at this node in postorder. |
Enumeration |
preorderEnumeration()
Creates and returns an enumeration that traverses the subtree rooted at this node in preorder. |
void |
setChildren(List<?> children)
Sets the children for this Expandable. |
Methods inherited from class com.jidesoft.grid.AbstractNode |
---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getLevel, getNextSibling, getParent, getPreviousSibling, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jidesoft.grid.Node |
---|
getLevel, getNextSibling, getParent, getPreviousSibling, setParent |
Field Detail |
---|
protected List<?> _children
public static final String PROPERTY_CHILDREN
public static final Enumeration<Object> EMPTY_ENUMERATION
Constructor Detail |
---|
public DefaultExpandable()
public DefaultExpandable(List<Row> children)
Method Detail |
---|
public List<?> getChildren()
Expandable
public void setChildren(List<?> children)
AbstractExpandable.addChild(Object)
instead. Nor should you use getChildren().add(...) because
both setChildren and getChildren().add will not notify the TreeTableModel about the change.
children
- the new childrenpublic Enumeration preorderEnumeration()
nextElement()
method is this node.Modifying the tree by inserting, removing, or moving a node invalidates any enumerations created before the modification.
postorderEnumeration()
public Enumeration postorderEnumeration()
nextElement()
method is the leftmost leaf. This is the
same as a depth-first traversal.Modifying the tree by inserting, removing, or moving a node invalidates any enumerations created before the modification.
depthFirstEnumeration()
,
preorderEnumeration()
public Enumeration breadthFirstEnumeration()
nextElement()
method is this node.Modifying the tree by inserting, removing, or moving a node invalidates any enumerations created before the modification.
depthFirstEnumeration()
public Enumeration depthFirstEnumeration()
nextElement()
method is the leftmost leaf.
This is the same as a postorder traversal.Modifying the tree by inserting, removing, or moving a node invalidates any enumerations created before the modification.
breadthFirstEnumeration()
,
postorderEnumeration()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |