|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.view.client.TreeViewModel.DefaultNodeInfo<T>
public static class TreeViewModel.DefaultNodeInfo<T>
Default implementation of TreeViewModel.DefaultNodeInfo.
| Constructor Summary | |
|---|---|
TreeViewModel.DefaultNodeInfo(AbstractListViewAdapter<T> adapter,
Cell<T> cell)
Construct a new TreeViewModel.DefaultNodeInfo. |
|
TreeViewModel.DefaultNodeInfo(AbstractListViewAdapter<T> adapter,
Cell<T> cell,
SelectionModel<? super T> selectionModel,
ValueUpdater<T> valueUpdater)
Construct a new TreeViewModel.DefaultNodeInfo. |
|
| Method Summary | |
|---|---|
Cell<T> |
getCell()
Get the Cell 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 the SelectionModel used for the children of this node. |
ValueUpdater<T> |
getValueUpdater()
Get the value updater associated with the cell. |
void |
setView(ListView<T> view)
Set the view that is listening to this TreeViewModel.DefaultNodeInfo. |
void |
unsetView()
Unset the view from the TreeViewModel.DefaultNodeInfo. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeViewModel.DefaultNodeInfo(AbstractListViewAdapter<T> adapter,
Cell<T> cell)
TreeViewModel.DefaultNodeInfo.
adapter - the AbstractListViewAdapter that provides the
child valuescell - the Cell used to render the child values
public TreeViewModel.DefaultNodeInfo(AbstractListViewAdapter<T> adapter,
Cell<T> cell,
SelectionModel<? super T> selectionModel,
ValueUpdater<T> valueUpdater)
TreeViewModel.DefaultNodeInfo.
adapter - the AbstractListViewAdapter that provides the
child valuescell - the Cell used to render the child values update when
the selection changesvalueUpdater - the ValueUpdater| Method Detail |
|---|
public Cell<T> getCell()
TreeViewModel.NodeInfoCell used to render the children of this node.
getCell in interface TreeViewModel.NodeInfo<T>Cellpublic ProvidesKey<T> getProvidesKey()
TreeViewModel.NodeInfo
getProvidesKey in interface TreeViewModel.NodeInfo<T>ProvidesKeypublic SelectionModel<? super T> getSelectionModel()
TreeViewModel.NodeInfoSelectionModel 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 of SelectionModel from all
TreeViewModel.DefaultNodeInfo.
getSelectionModel in interface TreeViewModel.NodeInfo<T>SelectionModelpublic ValueUpdater<T> getValueUpdater()
TreeViewModel.NodeInfo
getValueUpdater in interface TreeViewModel.NodeInfo<T>public void setView(ListView<T> view)
TreeViewModel.NodeInfoTreeViewModel.DefaultNodeInfo. The
implementation should attach the view to the source of data.
setView in interface TreeViewModel.NodeInfo<T>view - the ListViewpublic void unsetView()
TreeViewModel.NodeInfoTreeViewModel.DefaultNodeInfo. The implementation should
detach the view from the source of data.
unsetView in interface TreeViewModel.NodeInfo<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||