Class TagTable.DeleteAction

  • All Implemented Interfaces:
    ActionListener, Serializable, Cloneable, EventListener, Action, ListSelectionListener
    Enclosing class:
    TagTable

    class TagTable.DeleteAction
    extends AbstractAction
    implements ListSelectionListener
    Action to be run when the user invokes a delete action on the table, for instance by pressing DEL. Depending on the shape on the current selection the action deletes individual values or entire tags from the model. If the current selection consists of cells in the second column only, the keys of the selected tags are set to the empty string. If the current selection consists of cell in the third column only, the values of the selected tags are set to the empty string. If the current selection consists of cells in the second and the third column, the selected tags are removed from the model. This action listens to the table selection. It becomes enabled when the selection is non-empty, otherwise it is disabled.