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

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

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

This class manages the comment 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 TextAreaWindow generateCreationWindow(Statement followingStatement, ArticlePage page)
          Generates a new comment editor window for the creation of a new comment.
static TextAreaWindow generateEditWindow(Comment comment, ArticlePage page)
          Generates a new comment editor window for editing an existing comment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generateCreationWindow

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

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 TextAreaWindow generateEditWindow(Comment comment,
                                                ArticlePage page)
Generates a new comment editor window for editing an existing comment.

Parameters:
comment - The comment 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