gate.gui.ontology
Class AnnotationPropertyAction
java.lang.Object
javax.swing.AbstractAction
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
| 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 |
mainPanel
protected JPanel mainPanel
nameSpace
protected JTextField nameSpace
propertyName
protected JTextField propertyName
ontology
protected Ontology ontology
AnnotationPropertyAction
public AnnotationPropertyAction(String s,
Icon icon)
- Constructor
- Parameters:
s - - Label assigned to the Buttonicon - - Icon assigned to the Button
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.