Protégé-OWL 3.4.8

edu.stanford.smi.protegex.owl.ui.cls
Class CreateSubclassAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by edu.stanford.smi.protegex.owl.ui.actions.ResourceAction
          extended by edu.stanford.smi.protegex.owl.ui.cls.CreateSubclassAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, Comparable, EventListener, Action

public class CreateSubclassAction
extends ResourceAction

A ResourceAction for named classes, to create a subclass of the currently selected class.

Author:
Holger Knublauch
See Also:
Serialized Form

Field Summary
static String TEXT
           
 
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
CreateSubclassAction()
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 int getPriority()
          Gets an (optional) integer that can be used to control the order of actions in a menu.
 boolean isSuitable(Component component, RDFResource resource)
           
static void performAction(Collection superclasses, ClassTreePanel classTreePanel)
           
 
Methods inherited from class edu.stanford.smi.protegex.owl.ui.actions.ResourceAction
compareTo, getComponent, getGroup, getOWLModel, getResource, initialize, isInToolBar
 
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
 

Field Detail

TEXT

public static final String TEXT
See Also:
Constant Field Values
Constructor Detail

CreateSubclassAction

public CreateSubclassAction()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

getPriority

public int getPriority()
Description copied from class: ResourceAction
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.

Overrides:
getPriority in class ResourceAction
Returns:
the priority (0 is default)

isSuitable

public boolean isSuitable(Component component,
                          RDFResource resource)
Specified by:
isSuitable in class ResourceAction

performAction

public static void performAction(Collection superclasses,
                                 ClassTreePanel classTreePanel)

Protégé-OWL 3.4.8

Submit a bug report or feature request
Copyright (c) 1998-2012 Stanford University.