public interface CheckNodeModelFilter extends NodeModelFilter
CheckNodeModel
.
Can be also used to add the check-boxes to an ordinary NodeModel
.Modifier and Type | Method and Description |
---|---|
boolean |
isCheckable(NodeModel original,
Object node)
Tell the renderer to display the check-box.
|
boolean |
isCheckEnabled(NodeModel original,
Object node)
Provide the enabled state of the check-box.
|
Boolean |
isSelected(NodeModel original,
Object node)
Provide the selected state of the check-box.
|
void |
setSelected(NodeModel original,
Object node,
Boolean selected)
Called by the renderer when the check-box gets selected/unselected
|
addModelListener, getDisplayName, getIconBase, getShortDescription, removeModelListener
boolean isCheckable(NodeModel original, Object node) throws UnknownTypeException
original
- the original node modelnode
- the tree node objecttrue
if the check-box should be displayed, false
otherwise.UnknownTypeException
boolean isCheckEnabled(NodeModel original, Object node) throws UnknownTypeException
original
- the original node modelnode
- the tree node objecttrue
if the check-box should be enabled, false
otherwise.UnknownTypeException
Boolean isSelected(NodeModel original, Object node) throws UnknownTypeException
original
- the original node modelnode
- the tree node objecttrue
if the check-box should be selected,
false
if it should be unselected and
null
if the state is unknown.UnknownTypeException
void setSelected(NodeModel original, Object node, Boolean selected) throws UnknownTypeException
original
- the original node modelnode
- the tree node objectselected
- true
if the check-box was selected,
false
if the check-box was unselected.UnknownTypeException