net.sourceforge.nite.tools.jastcoder
Class JastEditorModule

java.lang.Object
  extended by net.sourceforge.nite.tools.jastcoder.JastEditorModule
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, SignalListener, NTASelectionListener, NOMWriteElementContainer

public class JastEditorModule
extends java.lang.Object
implements NTASelectionListener, java.awt.event.ActionListener, SignalListener, NOMWriteElementContainer

This Editor Module is the first step in the 'plug-in' like restructuring of ou annotation tools. The editor module provides a graphical interface (JComponent... e.g. JPanel) for editing elements of a certain type (Dialogue acts). The module also provides a number of editing functions for external access, such as may be createNewElement or deleteCurrentElement. And last but not least the module provides an ActionMap of actions, which can be connected to keypresses in main tool, or displayed as a toolbar...


Field Summary
static java.lang.String CHANGE_ACCESS_ACTION
          Change accessability value.
static java.lang.String CHECK_DEIXIS_ACTION
          Check deixis checkbox.
static java.lang.String CHECK_ISPART_ACTION
          Check ispart checkbox.
static int NORMAL
           
static int WAITING
           
 
Constructor Summary
JastEditorModule(JastCoder main)
           
JastEditorModule(JastCoder main, java.lang.String longname, java.lang.String shortname)
          Alternative constructor that sets the long and short names of the discourse entities to be edited in this window (defaults: "Referring Expression"; "RE").
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ev)
          Called for ontology popup menu.
 javax.swing.ActionMap getActionMap()
          Initializes (if still needed) and returns the ActionMap for this module.
 NOMWriteElement getCurrentElement()
           
 javax.swing.JComponent getPanel()
           
 void selectionChanged()
          Depending on the state of the editormodule , this method reacts appropriately to selection changes (change range, or set current element
 void setCurrentElement(NOMWriteElement element)
           
 void signalChanged(java.lang.String name)
          Called when another signal is loaded.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORMAL

public static final int NORMAL
See Also:
Constant Field Values

WAITING

public static final int WAITING
See Also:
Constant Field Values

CHECK_ISPART_ACTION

public static final java.lang.String CHECK_ISPART_ACTION
Check ispart checkbox.

See Also:
Constant Field Values

CHANGE_ACCESS_ACTION

public static final java.lang.String CHANGE_ACCESS_ACTION
Change accessability value.

See Also:
Constant Field Values

CHECK_DEIXIS_ACTION

public static final java.lang.String CHECK_DEIXIS_ACTION
Check deixis checkbox.

See Also:
Constant Field Values
Constructor Detail

JastEditorModule

public JastEditorModule(JastCoder main)

JastEditorModule

public JastEditorModule(JastCoder main,
                        java.lang.String longname,
                        java.lang.String shortname)
Alternative constructor that sets the long and short names of the discourse entities to be edited in this window (defaults: "Referring Expression"; "RE").

Method Detail

getActionMap

public javax.swing.ActionMap getActionMap()
Initializes (if still needed) and returns the ActionMap for this module. The action names are stored in public variables in this class.


getPanel

public javax.swing.JComponent getPanel()

setCurrentElement

public void setCurrentElement(NOMWriteElement element)

getCurrentElement

public NOMWriteElement getCurrentElement()
Specified by:
getCurrentElement in interface NOMWriteElementContainer

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)
Called for ontology popup menu. Change type...

Specified by:
actionPerformed in interface java.awt.event.ActionListener

selectionChanged

public void selectionChanged()
Depending on the state of the editormodule , this method reacts appropriately to selection changes (change range, or set current element

Specified by:
selectionChanged in interface NTASelectionListener

signalChanged

public void signalChanged(java.lang.String name)
Description copied from interface: SignalListener

Called when another signal is loaded.

Specified by:
signalChanged in interface SignalListener
Parameters:
name - the name of the new signal