Protégé-OWL 3.3.1

edu.stanford.smi.protegex.owl.ui.resourcedisplay
Class AddPropertyWidgetToFormAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by edu.stanford.smi.protegex.owl.ui.resourceselection.ResourceSelectionAction
          extended by edu.stanford.smi.protegex.owl.ui.resourcedisplay.AddPropertyWidgetToFormAction
All Implemented Interfaces:
ResourceSelectionListener, ActionListener, Serializable, Cloneable, EventListener, Action

public class AddPropertyWidgetToFormAction
extends ResourceSelectionAction

An Action to add a slot widget for a currently invisible slot to the FormWidget of the direct type of a given Instance.

Author:
Holger Knublauch
See Also:
Serialized Form

Field Summary
 
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
AddPropertyWidgetToFormAction(RDFResource resource, ResourceDisplay parent)
           
 
Method Summary
 Collection getSelectableResources()
           
 RDFResource pickResource()
          This method is used when single 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, pickResources, 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
 

Constructor Detail

AddPropertyWidgetToFormAction

public AddPropertyWidgetToFormAction(RDFResource resource,
                                     ResourceDisplay parent)
Method Detail

resourceSelected

public void resourceSelected(RDFResource resource)

getSelectableResources

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

pickResource

public RDFResource pickResource()
Description copied from class: ResourceSelectionAction
This method is used when single selection is allowed for this Action.

Overrides:
pickResource in class ResourceSelectionAction
Returns:
the selected Frame

Protégé-OWL 3.3.1

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