ch.uzh.ifi.attempto.acewiki.gui
Class SentenceEditorHandler

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.gui.SentenceEditorHandler
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, nextapp.echo.app.event.ActionListener

public class SentenceEditorHandler
extends java.lang.Object
implements nextapp.echo.app.event.ActionListener

This class manages the predictive editor. It creates the editor window and handles its responses.

Author:
Tobias Kuhn
See Also:
Serialized Form

Method Summary
 void actionPerformed(nextapp.echo.app.event.ActionEvent e)
           
static PreditorWindow generateCreationWindow(Statement followingStatement, ArticlePage page)
          Generates a new preditive editor window for the creation of a new sentence.
static PreditorWindow generateEditWindow(Sentence sentence, ArticlePage page)
          Generates a new preditive editor window for editing an existing sentence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generateCreationWindow

public static PreditorWindow generateCreationWindow(Statement followingStatement,
                                                    ArticlePage page)
Generates a new preditive editor window for the creation of a new sentence.

Parameters:
followingStatement - The statement in front of which the new sentences should be added, or null if the sentences should be added to the end of the article.
page - The host page into which the sentence should be added.
Returns:
A new preditor window.

generateEditWindow

public static PreditorWindow generateEditWindow(Sentence sentence,
                                                ArticlePage page)
Generates a new preditive editor window for editing an existing sentence.

Parameters:
sentence - The sentence that should be edited.
page - The host page which contains the sentence to be edited.
Returns:
A new preditor window.

actionPerformed

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


Copyright 2008-2012, AceWiki developers