Class ListItemRemoveAction

All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class ListItemRemoveAction extends EnhancedAction
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:
  • Constructor Details

    • ListItemRemoveAction

      public ListItemRemoveAction(ListField<?> listField)
      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

      public ListItemRemoveAction(String name, ListField<?> listField)
      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

      public ListItemRemoveAction(Icon icon, ListField<?> listField)
      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

      public void actionPerformed(ActionEvent e)