E
- the type of the action eventpublic abstract class AbstractToggleActionListener<E> extends AbstractActionListener<E> implements ToggleActionListener<E>
ToggleActionListener
s.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, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onSelectionChanged
addPropertyChangeListener, isEnabled, removePropertyChangeListener
public 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–2017 Drombler. All rights reserved.