ccc.client.presenters
Class UpdateCommentPresenter

java.lang.Object
  extended by ccc.client.core.AbstractPresenter<ICommentView,Comment>
      extended by ccc.client.presenters.UpdateCommentPresenter
All Implemented Interfaces:
Editable, EventHandler<CommandType>

public class UpdateCommentPresenter
extends AbstractPresenter<ICommentView,Comment>
implements Editable

MVP presenter for updating comments.

Author:
Civic Computing Ltd.

Constructor Summary
UpdateCommentPresenter(ICommentView view, Comment model)
          Constructor.
 
Method Summary
 void cancel()
          Discard the edits.
 void handle(Event<CommandType> event)
          Handle an event.
 void save()
          Confirm the edits.
 
Methods inherited from class ccc.client.core.AbstractPresenter
clearHandlers, dispose, getModel, getView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateCommentPresenter

public UpdateCommentPresenter(ICommentView view,
                              Comment model)
Constructor.

Parameters:
view - View implementation.
model - Model implementation.
Method Detail

save

public void save()
Confirm the edits.

Specified by:
save in interface Editable

handle

public void handle(Event<CommandType> event)
Handle an event.

Specified by:
handle in interface EventHandler<CommandType>
Parameters:
event - The event to handle.

cancel

public void cancel()
Discard the edits.

Specified by:
cancel in interface Editable


Copyright © 2010. All Rights Reserved.