edu.stanford.smi.protegex.owl.ui.clsdesc
Class AddRowAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byedu.stanford.smi.protegex.owl.ui.resourceselection.ResourceSelectionAction
          extended byedu.stanford.smi.protegex.owl.ui.clsdesc.AddRowAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, ResourceSelectionListener, Serializable

class AddRowAction
extends ResourceSelectionAction

An Action that adds a class from a list into the table.

Author:
Holger Knublauch

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private  ClassDescriptionTable table
           
private  boolean thingAllowed
           
 
Fields inherited from class edu.stanford.smi.protegex.owl.ui.resourceselection.ResourceSelectionAction
activated
 
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
(package private) AddRowAction(ClassDescriptionTable table, String name, boolean thingAllowed)
           
 
Method Summary
 Collection getSelectableResources()
           
 Collection pickResources()
          This method is only used when multiple selection is allowed for this Action.
 void resourceSelected(RDFResource resource)
           
 
Methods inherited from class edu.stanford.smi.protegex.owl.ui.resourceselection.ResourceSelectionAction
actionPerformed, activateComboBox, getRenderer, getShowHiddenResources, pickResource, setActivated, setShowHiddenResources
 
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

table

private ClassDescriptionTable table

thingAllowed

private boolean thingAllowed
Constructor Detail

AddRowAction

AddRowAction(ClassDescriptionTable table,
             String name,
             boolean thingAllowed)
Method Detail

resourceSelected

public void resourceSelected(RDFResource resource)

getSelectableResources

public Collection getSelectableResources()
Specified by:
getSelectableResources in class ResourceSelectionAction

pickResources

public Collection pickResources()
Description copied from class: ResourceSelectionAction
This method is only used when multiple selection is allowed for this Action. By default, it will call pickFrame.

Overrides:
pickResources in class ResourceSelectionAction
Returns:
the Frame