public static class

TreeViewModel.DefaultNodeInfo

extends Object
implements TreeViewModel.NodeInfo<T>
java.lang.Object
   ↳ com.google.gwt.view.client.TreeViewModel.DefaultNodeInfo<T>

Class Overview

Default implementation of TreeViewModel.DefaultNodeInfo.

Summary

Public Constructors
TreeViewModel.DefaultNodeInfo(AbstractDataProvider<T> dataProvider, Cell<T> cell)
TreeViewModel.DefaultNodeInfo(AbstractDataProvider<T> dataProvider, Cell<T> cell, SelectionModel<? super T> selectionModel, ValueUpdater<T> valueUpdater)
TreeViewModel.DefaultNodeInfo(AbstractDataProvider<T> dataProvider, Cell<T> cell, SelectionModel<? super T> selectionModel, Handler<T> selectionEventManager, ValueUpdater<T> valueUpdater)
Public Methods
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 setDataDisplay(HasData<T> display)
Set the display that is listening to this TreeViewModel.DefaultNodeInfo.
void unsetDataDisplay()
Unset the display from the TreeViewModel.DefaultNodeInfo.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.view.client.TreeViewModel.NodeInfo

Public Constructors

public TreeViewModel.DefaultNodeInfo (AbstractDataProvider<T> dataProvider, Cell<T> cell)

Parameters
dataProvider the AbstractDataProvider that provides the child values
cell the Cell used to render the child values

public TreeViewModel.DefaultNodeInfo (AbstractDataProvider<T> dataProvider, Cell<T> cell, SelectionModel<? super T> selectionModel, ValueUpdater<T> valueUpdater)

Parameters
dataProvider the AbstractDataProvider that provides the child values
cell the Cell used to render the child values update when the selection changes
selectionModel the SelectionModel used for selection
valueUpdater the ValueUpdater

public TreeViewModel.DefaultNodeInfo (AbstractDataProvider<T> dataProvider, Cell<T> cell, SelectionModel<? super T> selectionModel, Handler<T> selectionEventManager, ValueUpdater<T> valueUpdater)

Parameters
dataProvider the AbstractDataProvider that provides the child values
cell the Cell used to render the child values update when the selection changes
selectionModel the SelectionModel used for selection
selectionEventManager the CellPreviewEvent.Handler that handles user selection interaction
valueUpdater the ValueUpdater

Public Methods

public Cell<T> getCell ()

Get the Cell used to render the children of this node.

Returns

public ProvidesKey<T> getProvidesKey ()

Return the key provider for children of this node.

Returns

public SelectionModel<? super T> getSelectionModel ()

Get the SelectionModel 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.

Returns

public ValueUpdater<T> getValueUpdater ()

Get the value updater associated with the cell.

Returns
  • the value updater

public void setDataDisplay (HasData<T> display)

Set the display that is listening to this TreeViewModel.DefaultNodeInfo. The implementation should attach the display to the source of data.

Parameters
display the HasData

public void unsetDataDisplay ()

Unset the display from the TreeViewModel.DefaultNodeInfo. The implementation should detach the display from the source of data.