|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.user.cellview.client.CellTreeNodeView.TreeNodeImpl
static class CellTreeNodeView.TreeNodeImpl
An implementation of TreeNode
that delegates to a
CellTreeNodeView
. This class is intentionally static because we
might move it to a new CellTreeNodeView
, and we don't want
non-static references to the old CellTreeNodeView
.
Constructor Summary | |
---|---|
CellTreeNodeView.TreeNodeImpl(CellTreeNodeView<?> nodeView)
|
Method Summary | |
---|---|
(package private) void |
flush()
Flush pending changes in the view. |
int |
getChildCount()
Get the number of children of the node. |
java.lang.Object |
getChildValue(int index)
Get the value associated with a child node. |
int |
getIndex()
Get the index of the current node relative to its parent. |
(package private) CellTreeNodeView<?> |
getNodeView()
|
TreeNode |
getParent()
Get the parent node of this node. |
java.lang.Object |
getValue()
Get the value associated with this node. |
boolean |
isChildLeaf(int index)
Check whether or not a child node is a leaf node. |
boolean |
isChildOpen(int index)
Check whether or not a child node is open. |
boolean |
isDestroyed()
Check whether or not the current node is destroyed. |
TreeNode |
setChildOpen(int index,
boolean open)
Open or close a child node and fire an event. |
TreeNode |
setChildOpen(int index,
boolean open,
boolean fireEvents)
Open or close the node, optionally firing an event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CellTreeNodeView.TreeNodeImpl(CellTreeNodeView<?> nodeView)
Method Detail |
---|
public int getChildCount()
TreeNode
getChildCount
in interface TreeNode
public java.lang.Object getChildValue(int index)
TreeNode
getChildValue
in interface TreeNode
index
- the child index
public int getIndex()
TreeNode
getIndex
in interface TreeNode
final CellTreeNodeView<?> getNodeView()
public TreeNode getParent()
TreeNode
getParent
in interface TreeNode
public java.lang.Object getValue()
TreeNode
getValue
in interface TreeNode
public boolean isChildLeaf(int index)
TreeNode
isChildLeaf
in interface TreeNode
index
- the index of the child
public boolean isChildOpen(int index)
TreeNode
isChildOpen
in interface TreeNode
index
- the index of the child
public boolean isDestroyed()
TreeNode
IllegalStateException
.
isDestroyed
in interface TreeNode
public TreeNode setChildOpen(int index, boolean open)
TreeNode
open
is true
and the TreeNode
successfully opens, returns the child
TreeNode
. Delegates to TreeNode.setChildOpen(int,boolean, boolean)
.
setChildOpen
in interface TreeNode
index
- the index of the childopen
- true to open, false to close
TreeNode
that was opened, or null if the node was
closed or could not be openedpublic TreeNode setChildOpen(int index, boolean open, boolean fireEvents)
TreeNode
open
is
true and the TreeNode
successfully opens, returns the child
TreeNode
.
setChildOpen
in interface TreeNode
index
- the index of the childopen
- true to open, false to flosefireEvents
- true to fire an event, false not to
TreeNode
that was opened, or null if the node was
closed or could not be openedvoid flush()
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |