public abstract class BooleanAction extends SimpleAction
description, icon, namechangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
BooleanAction(String
Create a new boolean action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent
|
abstract boolean |
getState()
|
Object |
getValue(String
|
abstract void |
toggleState()
implement what happens when the state is toggled.
|
setIconFromResourcesetDescription, setIcon, setNameaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic abstract boolean getState()
public abstract void toggleState()
public void actionPerformed(ActionEvente)