public static class BAMutil.ActionToggle extends AbstractAction
Boolean state = (Boolean) act.getValue(BAMutil.STATE); act.putValue(BAMutil.STATE, new Boolean(state));It will automatically change the button state if the action state changes.
changeSupport, 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 |
|---|
BAMutil.ActionToggle(Action oa,
AbstractButton b) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic BAMutil.ActionToggle(Action oa, AbstractButton b)
public void actionPerformed(ActionEvent e)
Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.