E - the type of the action eventpublic interface ToggleActionListener<E> extends ActionListener<E>
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSelected()
Returns true, if this toggable action is selected, else false.
|
void |
onSelectionChanged(boolean oldValue,
boolean newValue)
This method gets called when the selection state of this toggable action changes.
|
void |
setSelected(boolean selected)
Sets the selection state of this toggable action.
|
addPropertyChangeListener, isEnabled, onAction, removePropertyChangeListenerboolean isSelected()
void setSelected(boolean selected)
selected - true, to select this toggable action, else falsevoid onSelectionChanged(boolean oldValue,
boolean newValue)
oldValue - the old selection statenewValue - the new selection stateCopyright © 2012–2015 Drombler. All rights reserved.