public interface Selectable| Modifier and Type | Method and Description |
|---|---|
void |
addSelectionListener(SelectionListener
Add a new listener that informs you about selection changes.
|
boolean |
isSelected()
|
void |
removeSelectionListener(SelectionListener
Remove the denoted listener from the list of listeners.
|
void |
setSelected(boolean state)
Set whether this component is currently selected;
|
boolean isSelected()
void setSelected(boolean state)
state - selected or not selected
void addSelectionListener(SelectionListenerlistener)
listener - the listener to add.
void removeSelectionListener(SelectionListenerlistener)
listener - the listener to remove.