Class ListItemClearAction

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

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

    • ListItemClearAction

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

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

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

      public void actionPerformed(ActionEvent e)