|
org.netbeans.spi.viewmodel/2 1.26.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CheckNodeModel
The extension of 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.
| Method Summary | |
|---|---|
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 |
| Methods inherited from interface org.netbeans.spi.viewmodel.NodeModel |
|---|
addModelListener, getDisplayName, getIconBase, getShortDescription, removeModelListener |
| Method Detail |
|---|
boolean isCheckable(Object node)
throws UnknownTypeException
node - the tree node object
true if the check-box should be displayed, false otherwise.
UnknownTypeException
boolean isCheckEnabled(Object node)
throws UnknownTypeException
node - the tree node object
true if the check-box should be enabled, false otherwise.
UnknownTypeException
Boolean isSelected(Object node)
throws UnknownTypeException
node - the tree node object
true 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
|
org.netbeans.spi.viewmodel/2 1.26.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||