Package ca.corbett.forms.actions
Class ListItemClearAction
java.lang.Object
javax.swing.AbstractAction
ca.corbett.extras.EnhancedAction
ca.corbett.forms.actions.ListItemClearAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
An EnhancedAction that can be used with any ListField to clear all items from the list.
- Since:
- swing-extras 2.7
- Author:
- scorbo2
- 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
ConstructorsConstructorDescriptionListItemClearAction(ListField<?> listField) Creates a new ListItemClearAction with the default name and the given ListField.ListItemClearAction(String name, ListField<?> listField) Creates a new ListItemClearAction with the specified name and ListField.ListItemClearAction(Icon icon, ListField<?> listField) Creates a new ListItemClearAction with the specified icon and ListField. -
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
-
ListItemClearAction
Creates a new ListItemClearAction with the default name and the given ListField.- Parameters:
listField- The ListField from which selected items will be removed. Must not be null.
-
ListItemClearAction
Creates a new ListItemClearAction with the specified name and ListField.- Parameters:
name- The name for this action.listField- The ListField from which selected items will be removed. Must not be null.
-
ListItemClearAction
Creates a new ListItemClearAction with the specified icon and ListField.- Parameters:
icon- The icon for this action.listField- The ListField from which selected items will be removed. Must not be null.
-
-
Method Details
-
actionPerformed
-