ch.uzh.ifi.attempto.aceeditor
Class ACEEditor

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

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

This is the main class of the ACE Editor web application. The ACE Editor allows users to write sentences in ACE by the use of a predictive editor. Users can extend the lexicon and they can upload their own lexica.

Author:
Tobias Kuhn
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nextapp.echo.app.Window
PROPERTY_TITLE
 
Fields inherited from class nextapp.echo.app.Component
CHILD_VISIBLE_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_NEXT_ID_CHANGED_PROPERTY, FOCUS_PREVIOUS_ID_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.util.Map<java.lang.String,java.lang.String> parameters)
          Creates a new ACE Editor application.
 
Method Summary
 void actionPerformed(nextapp.echo.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.
 int getMaxUploadFileSize()
          Returns the maximum file size (in bytes) for file upload.
 java.lang.String getParameter(java.lang.String paramName)
          Returns the value of the given parameter.
 boolean isLexiconImmutable()
          Returns whether the lexicon is immutable or can be changed by users.
 boolean isParseWithClexEnabled()
          Returns whether parsing with the compiled lexicon of the APE executable is enabled.
 
Methods inherited from class nextapp.echo.app.Window
getContent, getTitle, isValidChild, isValidParent, setContent, setTitle
 
Methods inherited from class nextapp.echo.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusNextId, getFocusPreviousId, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isVisible, processInput, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusNextId, setFocusPreviousId, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, 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.util.Map<java.lang.String,java.lang.String> parameters)
Creates a new ACE Editor application.

Parameters:
parameters - A set of parameters in the form of name/value pairs.
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.

isLexiconImmutable

public boolean isLexiconImmutable()
Returns whether the lexicon is immutable or can be changed by users.

Returns:
true if the lexicon is immutable.

getMaxUploadFileSize

public int getMaxUploadFileSize()
Returns the maximum file size (in bytes) for file upload. 0 means unlimited file size.

Returns:
The maximum file size.

getParameter

public java.lang.String getParameter(java.lang.String paramName)
Returns the value of the given parameter. These parameters are defined in the web.xml file of the web application.

Parameters:
paramName - The parameter name.
Returns:
The value of the parameter.

getFullText

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

Returns:
The full text.

actionPerformed

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

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-2012, AceWiki developers