Package com.google.gwt.view.client
Interface TreeViewModel.NodeInfo<T>
-
- All Known Implementing Classes:
TreeViewModel.DefaultNodeInfo
- Enclosing interface:
- TreeViewModel
public static interface TreeViewModel.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 Cell<T>
getCell()
Get theCell
used to render the children of this node.ProvidesKey<T>
getProvidesKey()
Return the key provider for children of this node.SelectionModel<? super T>
getSelectionModel()
Get theSelectionModel
used for the children of this node.ValueUpdater<T>
getValueUpdater()
Get the value updater associated with the cell.void
setDataDisplay(HasData<T> display)
Set the display that is listening to thisTreeViewModel.NodeInfo
.void
unsetDataDisplay()
Unset the display from theTreeViewModel.NodeInfo
.
-
-
-
Method Detail
-
getProvidesKey
ProvidesKey<T> getProvidesKey()
Return the key provider for children of this node.- Returns:
- the
ProvidesKey
-
getSelectionModel
SelectionModel<? super T> getSelectionModel()
Get theSelectionModel
used for the children of this node. To unify selection across all items of the same type, or across the entire tree, return the same instance ofSelectionModel
from allTreeViewModel.NodeInfo
.- Returns:
- the
SelectionModel
-
getValueUpdater
ValueUpdater<T> getValueUpdater()
Get the value updater associated with the cell.- Returns:
- the value updater
-
setDataDisplay
void setDataDisplay(HasData<T> display)
Set the display that is listening to thisTreeViewModel.NodeInfo
. The implementation should attach the display to the source of data.- Parameters:
display
- theHasData
-
unsetDataDisplay
void unsetDataDisplay()
Unset the display from theTreeViewModel.NodeInfo
. The implementation should detach the display from the source of data.
-
-