Package ca.corbett.forms.demo
Class ListFieldPanel.ListItemAddAction
java.lang.Object
javax.swing.AbstractAction
ca.corbett.extras.EnhancedAction
ca.corbett.forms.demo.ListFieldPanel.ListItemAddAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
- Enclosing class:
ListFieldPanel
Adding a list item is one of the actions that we can't supply out-of-the-box,
because we don't know what type of data the list holds or what the list represents.
So, here's a simple example action that adds a string item to a ListField of strings.
(public because also used from Properties demo panel)
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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 -
Method Summary
Methods inherited from class ca.corbett.extras.EnhancedAction
getAcceleratorKey, getDescription, getIcon, getName, getTooltip, setAcceleratorKey, setDescription, setIcon, setName, setTooltipMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
ListItemAddAction
-
-
Method Details
-
actionPerformed
-