E - the type of the action eventpublic abstract class AbstractToggleActionListener<E> extends AbstractActionListener<E> implements ToggleActionListener<E>
ToggleActionListeners.| Constructor and Description |
|---|
AbstractToggleActionListener()
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSelected()
Returns true, if this toggable action is selected, else false.
|
void |
onAction(E event)
Does nothing by default.
|
void |
setSelected(boolean selected)
Sets the selection state of this toggable action.
|
addPropertyChangeListener, getPropertyChangeSupport, isEnabled, removePropertyChangeListener, setEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonSelectionChangedaddPropertyChangeListener, isEnabled, removePropertyChangeListenerpublic AbstractToggleActionListener()
public boolean isSelected()
isSelected in interface ToggleActionListener<E>public void setSelected(boolean selected)
setSelected in interface ToggleActionListener<E>selected - true, to select this toggable action, else falsepublic void onAction(E event)
onAction in interface ActionListener<E>event - the action eventCopyright © 2012–2015 Drombler. All rights reserved.