edu.stanford.smi.protege.util
Class AllowableAction
java.lang.Object
javax.swing.AbstractAction
edu.stanford.smi.protege.util.StandardAction
edu.stanford.smi.protege.util.AllowableAction
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- Direct Known Subclasses:
- AddAction, CreateAction, DeleteAction, MakeCopiesAction, ReferencersAction, RemoveAction, ViewAction
- public abstract class AllowableAction
- extends StandardAction
Base class for actions that supports two features: (1) listening to a
Selectable
and only enabling if a selection is made, and (2) being
disablable manually.
- Author:
- Ray Fergerson
- See Also:
- Serialized Form
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 |
AllowableAction
public AllowableAction(ResourceKey key)
AllowableAction
public AllowableAction(ResourceKey key,
Selectable selectable)
AllowableAction
public AllowableAction(String name,
Selectable selectable)
AllowableAction
public AllowableAction(String name,
Icon icon,
Selectable selectable)
AllowableAction
public AllowableAction(String name,
String description,
Icon icon,
Selectable selectable)
getSelectable
public Selectable getSelectable()
getSelection
public Collection getSelection()
onSelectionChange
public void onSelectionChange()
setAllowed
public void setAllowed(boolean b)
isAllowed
public boolean isAllowed()
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2005 Stanford University.