Module com.iamsoft.util.ui
Package com.iamsoft.util.ui.swing.action
Class ToggleComponentVisibilityAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- com.iamsoft.util.ui.swing.action.ToggleComponentVisibilityAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Direct Known Subclasses:
ToggleToolBarVisibilityAction
public class ToggleComponentVisibilityAction extends AbstractAction
Toggle display of component.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
-
Constructor Summary
Constructors Constructor Description ToggleComponentVisibilityAction(JComponent pComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent pEvt)
void
commit()
protected Preferences
getPreferences()
Storage location for visibility information.void
restore()
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
ToggleComponentVisibilityAction
public ToggleComponentVisibilityAction(JComponent pComponent)
-
-
Method Detail
-
getPreferences
protected Preferences getPreferences()
Storage location for visibility information. If null, changes are not persisted. By default, returns node specific to mComponent's classname.
-
commit
public void commit()
-
restore
public void restore()
-
actionPerformed
public void actionPerformed(ActionEvent pEvt)
-
-