Package com.google.gwt.view.client
Interface TreeViewModel
public interface TreeViewModel
A model of a tree.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Default implementation ofTreeViewModel.NodeInfo
.static interface
The info needed to create the children of a tree node. -
Method Summary
Modifier and TypeMethodDescription<T> TreeViewModel.NodeInfo
<?> getNodeInfo
(T value) Get theTreeViewModel.NodeInfo
that will provide theProvidesKey
,Cell
, andHasData
instances to retrieve and display the children of the specified value.boolean
Check if the value is known to be a leaf node.
-
Method Details
-
getNodeInfo
Get theTreeViewModel.NodeInfo
that will provide theProvidesKey
,Cell
, andHasData
instances to retrieve and display the children of the specified value.- Parameters:
value
- the value in the parent node- Returns:
- the
TreeViewModel.NodeInfo
-
isLeaf
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
-