|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An object representing a global "action" which can be used in tool bars and menu bars. This interface is independent from the Swing Action class, because it should also serve as a container for action items in Eclipse or similar platforms.
Field Summary | |
static String |
ICON
|
static String |
NAME
|
static String |
PATH_SEPARATOR
|
static String |
SUITABILITY
|
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to receive events when one of the characteristics of this (name, icon, suitability) have changed. |
String |
getMenubarPath()
Gets a path to the menu bar location of this action. |
String |
getName()
Gets the human readable name of this action, to be used as menu item text and tool bar button tool tip text. |
String |
getToolbarPath()
Gets the path to the tool bar location of this action. |
boolean |
isSuitable(OWLModel owlModel)
Determines whether this action shall be used for the given OWLModel. |
void |
notifyPropertyChangeListeners(String propertyName,
Object oldValue,
Object newValue)
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
void |
run(OWLModel owlModel)
Called when the action is executed by the user. |
Methods inherited from interface edu.stanford.smi.protege.util.Disposable |
dispose |
Methods inherited from interface edu.stanford.smi.protegex.owl.ui.actions.IconOwner |
getIconFileName, getIconResourceClass |
Field Detail |
public static final String PATH_SEPARATOR
public static final String NAME
public static final String ICON
public static final String SUITABILITY
Method Detail |
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- the listener to addpublic String getMenubarPath()
PATH_SEPARATOR
) between
the menu and group name.
public String getName()
public String getToolbarPath()
public boolean isSuitable(OWLModel owlModel)
owlModel
- the OWLModel to check against
public void notifyPropertyChangeListeners(String propertyName, Object oldValue, Object newValue)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void run(OWLModel owlModel)
owlModel
- the OWLModel to operate on
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |