edu.stanford.smi.protegex.owl.ui.actions
Class ResourceAction
java.lang.Object
javax.swing.AbstractAction
edu.stanford.smi.protegex.owl.ui.actions.ResourceAction
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, Comparable, EventListener, Serializable
- Direct Known Subclasses:
- AddClosureAxiomAction, AddCoveringAxiomAction, AddRDFTypeAction, AddSubclassAction, ChangeMetaclassAction, ChangeMetaclassOfSubclassesAction, ChangePropertyTypeAction, CheckSingleConceptConsistencyAction, CollapseTreeAction, ComputeIndividualsBelongingToClassAction, ComputeSingleIndividualTypesAction, ConvertIndividualToClassAction, ConvertToDatatypePropertyAction, ConvertToDefinedClassAction, ConvertToObjectPropertyAction, ConvertToPrimitiveClassAction, CreateClassUsingMetaclassAction, CreateCloneAction, CreateRDFListResourceAction, CreateSiblingClassAction, CreateSubclassAction, CreateSubpropertyAction, DeleteClassAction, DeletePropertyAction, EditRuleAction, ExistentialMatrixAction, ExpandTreeAction, ExplorerAction, ExtractOntologyAction, ExtractTaxonomyAction, GetInferredSubClassesAction, GetInferredSuperClassesAction, HideClassAction, JavaCodeGeneratorResourceAction, RefactorResourceAction, RemoveRDFTypeAction, SearchNamedClassAction, SortSubclassesAction, SortSubclassesTreeAction, SubclassesMatrixAction, SubpropertiesMatrixAction, UnhideClassAction
- public abstract class ResourceAction
- extends AbstractAction
- implements Comparable
- Author:
- Holger Knublauch
- See Also:
- Serialized Form
component
private Component component
group
private String group
inToolBar
private boolean inToolBar
resource
private RDFResource resource
ResourceAction
public ResourceAction(String name,
Icon icon)
ResourceAction
public ResourceAction(String name,
Icon icon,
String group)
ResourceAction
public ResourceAction(String name,
Icon icon,
String group,
boolean inToolBar)
- Constructs a new ResourceAction.
- Parameters:
name
- the display name of the Actionicon
- the Icongroup
- the (optional) group this should belong toinToolBar
- true to put this into the tool bar at the bottom of forms
(this is only possible if there is an icon as well)
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
getComponent
protected Component getComponent()
getGroup
public String getGroup()
getPriority
public int getPriority()
- Gets an (optional) integer that can be used to control the order of actions
in a menu. The higher the number, the further up the item will appear.
- Returns:
- the priority (0 is default)
getOWLModel
public OWLModel getOWLModel()
getResource
protected RDFResource getResource()
initialize
public void initialize(Component component,
RDFResource resource)
isInToolBar
public boolean isInToolBar()
isSuitable
public abstract boolean isSuitable(Component component,
RDFResource resource)