|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protegex.owl.ui.actions.AbstractOWLModelAction
A base class for OWLModelActions.
Field Summary | |
static String |
CODE_MENU
|
private Set |
listeners
|
static String |
OWL_MENU
|
static String |
PROJECT_MENU
|
private boolean |
suitable
|
static String |
TOOLS_MENU
|
Fields inherited from interface edu.stanford.smi.protegex.owl.ui.actions.OWLModelAction |
ICON, NAME, PATH_SEPARATOR, SUITABILITY |
Constructor Summary | |
AbstractOWLModelAction()
|
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to receive events when one of the characteristics of this (name, icon, suitability) have changed. |
void |
dispose()
|
String |
getIconFileName()
Gets the relative name of an (optional) icon. |
Class |
getIconResourceClass()
Gets a Class that is in the same folder as the icon file. |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.stanford.smi.protegex.owl.ui.actions.OWLModelAction |
getMenubarPath, getName, run |
Field Detail |
private Set listeners
private boolean suitable
public static String CODE_MENU
public static String OWL_MENU
public static String PROJECT_MENU
public static String TOOLS_MENU
Constructor Detail |
public AbstractOWLModelAction()
Method Detail |
public void addPropertyChangeListener(PropertyChangeListener listener)
OWLModelAction
addPropertyChangeListener
in interface OWLModelAction
listener
- the listener to addpublic void dispose()
dispose
in interface edu.stanford.smi.protege.util.Disposable
public Class getIconResourceClass()
IconOwner
getIconResourceClass
in interface IconOwner
public String getIconFileName()
IconOwner
getIconFileName
in interface IconOwner
"classify.gif"
or nullpublic String getToolbarPath()
OWLModelAction
getToolbarPath
in interface OWLModelAction
public boolean isSuitable(OWLModel owlModel)
OWLModelAction
isSuitable
in interface OWLModelAction
owlModel
- the OWLModel to check against
public void notifyPropertyChangeListeners(String propertyName, Object oldValue, Object newValue)
notifyPropertyChangeListeners
in interface OWLModelAction
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface OWLModelAction
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |