Package com.google.gwt.view.client
Interface TreeViewModel
-
public interface TreeViewModelA model of a tree.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTreeViewModel.DefaultNodeInfo<T>Default implementation ofTreeViewModel.NodeInfo.static interfaceTreeViewModel.NodeInfo<T>The info needed to create the children of a tree node.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TreeViewModel.NodeInfo<?>getNodeInfo(T value)Get theTreeViewModel.NodeInfothat will provide theProvidesKey,Cell, andHasDatainstances to retrieve and display the children of the specified value.booleanisLeaf(java.lang.Object value)Check if the value is known to be a leaf node.
-
-
-
Method Detail
-
getNodeInfo
<T> TreeViewModel.NodeInfo<?> getNodeInfo(T value)
Get theTreeViewModel.NodeInfothat will provide theProvidesKey,Cell, andHasDatainstances to retrieve and display the children of the specified value.- Parameters:
value- the value in the parent node- Returns:
- the
TreeViewModel.NodeInfo
-
isLeaf
boolean isLeaf(java.lang.Object value)
Check if the value is known to be a leaf node.- Parameters:
value- the value at the node- Returns:
- true if the node is known to be a leaf node, false otherwise
-
-