ch.uzh.ifi.attempto.aceeditor
Class ACEEditor

java.lang.Object
  extended by nextapp.echo2.app.Component
      extended by nextapp.echo2.app.Window
          extended by ch.uzh.ifi.attempto.aceeditor.ACEEditor
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, nextapp.echo2.app.event.ActionListener, nextapp.echo2.app.RenderIdSupport

public class ACEEditor
extends nextapp.echo2.app.Window
implements nextapp.echo2.app.event.ActionListener

This is the ACE Editor web application.

Author:
Tobias Kuhn
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nextapp.echo2.app.Window
PROPERTY_TITLE
 
Fields inherited from class nextapp.echo2.app.Component
CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
ACEEditor(java.lang.String lexiconFile, boolean parseWithClexEnabled)
          Creates a new ACE Editor application.
 
Method Summary
 void actionPerformed(nextapp.echo2.app.event.ActionEvent e)
           
 java.lang.String getFullText()
          Returns the full text of the current content of this ACE Editor instance.
static java.lang.String getInfo(java.lang.String key)
          Returns information about ACE Editor, like the version number and the release date.
 boolean isParseWithClexEnabled()
          Returns whether parsing with the compiled lexicon of the APE executable is enabled.
 
Methods inherited from class nextapp.echo2.app.Window
getContent, getTitle, isValidChild, isValidParent, setContent, setTitle
 
Methods inherited from class nextapp.echo2.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isVisible, processInput, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACEEditor

public ACEEditor(java.lang.String lexiconFile,
                 boolean parseWithClexEnabled)
Creates a new ACE Editor application.

Parameters:
lexiconFile - The file name of the lexicon to be used.
parseWithClexEnabled - true if the compiled lexicon (clex) of the APE executable should be used for parsing the ACE sentences. This should be done only if the compiled lexicon is the same as the lexicon defined by the first argument. Parsing with the compiled lexicon is faster.
Method Detail

isParseWithClexEnabled

public boolean isParseWithClexEnabled()
Returns whether parsing with the compiled lexicon of the APE executable is enabled.

Returns:
true if parsing with the compiled lexicon is enabled.

actionPerformed

public void actionPerformed(nextapp.echo2.app.event.ActionEvent e)
Specified by:
actionPerformed in interface nextapp.echo2.app.event.ActionListener

getFullText

public java.lang.String getFullText()
Returns the full text of the current content of this ACE Editor instance.

Returns:
The full text.

getInfo

public static java.lang.String getInfo(java.lang.String key)
Returns information about ACE Editor, like the version number and the release date. This information is read from the file "aceeditor.properties".

Parameters:
key - The key string.
Returns:
The value for the given key.


Copyright 2008-2009, Attempto Group, University of Zurich (see http://attempto.ifi.uzh.ch)