gate.gui.ontology
Class AnnotationPropertyAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by gate.gui.ontology.AnnotationPropertyAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class AnnotationPropertyAction
extends AbstractAction

Action to create a new annotation property.

See Also:
Serialized Form

Field Summary
protected  JPanel mainPanel
           
protected  JTextField nameSpace
           
protected  Ontology ontology
           
protected  JTextField propertyName
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
AnnotationPropertyAction(String s, Icon icon)
          Constructor
 
Method Summary
 void actionPerformed(ActionEvent actionevent)
           
 Ontology getOntology()
           
 void setOntology(Ontology ontology)
          Specifies the ontology that should be used to add/remove resource to/from.
 
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

mainPanel

protected JPanel mainPanel

nameSpace

protected JTextField nameSpace

propertyName

protected JTextField propertyName

ontology

protected Ontology ontology
Constructor Detail

AnnotationPropertyAction

public AnnotationPropertyAction(String s,
                                Icon icon)
Constructor

Parameters:
s - - Label assigned to the Button
icon - - Icon assigned to the Button
Method Detail

actionPerformed

public void actionPerformed(ActionEvent actionevent)

getOntology

public Ontology getOntology()
Returns:
the associated ontology

setOntology

public void setOntology(Ontology ontology)
Specifies the ontology that should be used to add/remove resource to/from.