Package ca.corbett.forms.actions
Class ListItemRemoveAction
java.lang.Object
javax.swing.AbstractAction
ca.corbett.extras.EnhancedAction
ca.corbett.forms.actions.ListItemRemoveAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
An EnhancedAction that can be used with any ListField to remove the selected items from the list.
The list may support multiple selection or single selection, it will work in either case.
- 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
ConstructorsConstructorDescriptionListItemRemoveAction(ListField<?> listField) Creates a new ListItemRemoveAction with the default name and the given ListField.ListItemRemoveAction(String name, ListField<?> listField) Creates a new ListItemRemoveAction with the specified name and ListField.ListItemRemoveAction(Icon icon, ListField<?> listField) Creates a new ListItemRemoveAction 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
-
ListItemRemoveAction
Creates a new ListItemRemoveAction with the default name and the given ListField.- Parameters:
listField- The ListField from which selected items will be removed. Must not be null.
-
ListItemRemoveAction
Creates a new ListItemRemoveAction 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.
-
ListItemRemoveAction
Creates a new ListItemRemoveAction 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
-