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

public static class ListFieldPanel.ListItemAddAction extends EnhancedAction
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:
  • Constructor Details

    • ListItemAddAction

      public ListItemAddAction(ListField<String> listField)
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)