Protege 3.4.3

edu.stanford.smi.protege.util
Class DeleteAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by edu.stanford.smi.protege.util.StandardAction
          extended by edu.stanford.smi.protege.util.AllowableAction
              extended by edu.stanford.smi.protege.util.DeleteAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
DeleteInstancesAction

public abstract class DeleteAction
extends AllowableAction

Base class for the delete action that is available on most widgets. This class handles the case of a multiselect delete by looping over the items to be deleted and calling #onDelete(Object) on each one separately.

Author:
Ray Fergerson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.stanford.smi.protege.util.StandardAction
DISABLED_ICON
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
protected DeleteAction(ResourceKey key, Selectable selectable)
           
protected DeleteAction(String text, Selectable selectable)
           
protected DeleteAction(String text, Selectable selectable, Icon icon)
           
 
Method Summary
 void actionPerformed(ActionEvent event)
           
 void onDelete()
           
protected  void onDelete(Collection items)
           
 void onDelete(Object o)
           
 
Methods inherited from class edu.stanford.smi.protege.util.AllowableAction
getSelectable, getSelection, isAllowed, onSelectionChange, setAllowed
 
Methods inherited from class edu.stanford.smi.protege.util.StandardAction
equals, getIcon, getName, getName, initialize, setDescription, setDescription, setDisabledIcon, setDisabledIcon, setIcon, setIcon, setMnemonic, setMnemonic, setName, setName, setShortcut, setShortcut, substituteIntoName
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteAction

protected DeleteAction(String text,
                       Selectable selectable,
                       Icon icon)

DeleteAction

protected DeleteAction(String text,
                       Selectable selectable)

DeleteAction

protected DeleteAction(ResourceKey key,
                       Selectable selectable)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)

onDelete

public void onDelete()

onDelete

protected void onDelete(Collection items)

onDelete

public void onDelete(Object o)

Protege 3.4.3

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2009 Stanford University.