public interface CheckNodeModel extends NodeModel
NodeModel
that can display check-boxes next to the
node display name.
Instead of a special column with check-boxes, this extension can be used.
It will make the UI cleaner and more usable.Modifier and Type | Method and Description |
---|---|
boolean |
isCheckable(Object node)
Tell the renderer to display the check-box.
|
boolean |
isCheckEnabled(Object node)
Provide the enabled state of the check-box.
|
Boolean |
isSelected(Object node)
Provide the selected state of the check-box.
|
void |
setSelected(Object node,
Boolean selected)
Called by the renderer when the check-box gets selected/unselected
|
addModelListener, getDisplayName, getIconBase, getShortDescription, removeModelListener
boolean isCheckable(Object node) throws UnknownTypeException
node
- the tree node objecttrue
if the check-box should be displayed, false
otherwise.UnknownTypeException
boolean isCheckEnabled(Object node) throws UnknownTypeException
node
- the tree node objecttrue
if the check-box should be enabled, false
otherwise.UnknownTypeException
Boolean isSelected(Object node) throws UnknownTypeException
node
- 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(Object node, Boolean selected) throws UnknownTypeException
node
- the tree node objectselected
- true
if the check-box was selected,
false
if the check-box was unselected.UnknownTypeException