|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nite.tools.jastcoder.JastEditorModule
public class JastEditorModule
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 |
---|
public static final int NORMAL
public static final int WAITING
public static final java.lang.String CHECK_ISPART_ACTION
public static final java.lang.String CHANGE_ACCESS_ACTION
public static final java.lang.String CHECK_DEIXIS_ACTION
Constructor Detail |
---|
public JastEditorModule(JastCoder main)
public JastEditorModule(JastCoder main, java.lang.String longname, java.lang.String shortname)
Method Detail |
---|
public javax.swing.ActionMap getActionMap()
public javax.swing.JComponent getPanel()
public void setCurrentElement(NOMWriteElement element)
public NOMWriteElement getCurrentElement()
getCurrentElement
in interface NOMWriteElementContainer
public void actionPerformed(java.awt.event.ActionEvent ev)
actionPerformed
in interface java.awt.event.ActionListener
public void selectionChanged()
selectionChanged
in interface NTASelectionListener
public void signalChanged(java.lang.String name)
SignalListener
Called when another signal is loaded.
signalChanged
in interface SignalListener
name
- the name of the new signal
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |