public static class TreeViewModel.DefaultNodeInfo<T> extends Object implements TreeViewModel.NodeInfo<T>
TreeViewModel.NodeInfo
.Constructor and Description |
---|
DefaultNodeInfo(AbstractDataProvider<T> dataProvider,
Cell<T> cell)
Construct a new
TreeViewModel.DefaultNodeInfo . |
DefaultNodeInfo(AbstractDataProvider<T> dataProvider,
Cell<T> cell,
SelectionModel<? super T> selectionModel,
CellPreviewEvent.Handler<T> selectionEventManager,
ValueUpdater<T> valueUpdater)
Construct a new
TreeViewModel.DefaultNodeInfo . |
DefaultNodeInfo(AbstractDataProvider<T> dataProvider,
Cell<T> cell,
SelectionModel<? super T> selectionModel,
ValueUpdater<T> valueUpdater)
Construct a new
TreeViewModel.DefaultNodeInfo . |
Modifier and Type | Method and Description |
---|---|
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.NodeInfo . |
void |
unsetDataDisplay()
Unset the display from the
TreeViewModel.NodeInfo . |
public DefaultNodeInfo(AbstractDataProvider<T> dataProvider, Cell<T> cell)
TreeViewModel.DefaultNodeInfo
.dataProvider
- the AbstractDataProvider
that provides the
child valuescell
- the Cell
used to render the child valuespublic DefaultNodeInfo(AbstractDataProvider<T> dataProvider, Cell<T> cell, SelectionModel<? super T> selectionModel, ValueUpdater<T> valueUpdater)
TreeViewModel.DefaultNodeInfo
.dataProvider
- the AbstractDataProvider
that provides the
child valuescell
- the Cell
used to render the child values update when
the selection changesselectionModel
- the SelectionModel
used for selectionvalueUpdater
- the ValueUpdater
public DefaultNodeInfo(AbstractDataProvider<T> dataProvider, Cell<T> cell, SelectionModel<? super T> selectionModel, CellPreviewEvent.Handler<T> selectionEventManager, ValueUpdater<T> valueUpdater)
TreeViewModel.DefaultNodeInfo
.dataProvider
- the AbstractDataProvider
that provides the
child valuescell
- the Cell
used to render the child values update when
the selection changesselectionModel
- the SelectionModel
used for selectionselectionEventManager
- the CellPreviewEvent.Handler
that
handles user selection interactionvalueUpdater
- the ValueUpdater
public Cell<T> getCell()
TreeViewModel.NodeInfo
Cell
used to render the children of this node.getCell
in interface TreeViewModel.NodeInfo<T>
Cell
public ProvidesKey<T> getProvidesKey()
TreeViewModel.NodeInfo
getProvidesKey
in interface TreeViewModel.NodeInfo<T>
ProvidesKey
public SelectionModel<? super T> getSelectionModel()
TreeViewModel.NodeInfo
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.NodeInfo
.getSelectionModel
in interface TreeViewModel.NodeInfo<T>
SelectionModel
public ValueUpdater<T> getValueUpdater()
TreeViewModel.NodeInfo
getValueUpdater
in interface TreeViewModel.NodeInfo<T>
public void setDataDisplay(HasData<T> display)
TreeViewModel.NodeInfo
TreeViewModel.NodeInfo
. The
implementation should attach the display to the source of data.setDataDisplay
in interface TreeViewModel.NodeInfo<T>
display
- the HasData
public void unsetDataDisplay()
TreeViewModel.NodeInfo
TreeViewModel.NodeInfo
. The implementation should
detach the display from the source of data.unsetDataDisplay
in interface TreeViewModel.NodeInfo<T>
Copyright © 2016. All rights reserved.