ccc.client.actions
Class UpdateCommentAction

java.lang.Object
  extended by ccc.client.core.RemotingAction
      extended by ccc.client.actions.UpdateCommentAction
All Implemented Interfaces:
Action

public class UpdateCommentAction
extends RemotingAction

Remote action for page updating.

Author:
Civic Computing Ltd.

Nested Class Summary
 class UpdateCommentAction.CommentUpdatedCallback
          Callback handler for updating a comment.
 
Field Summary
 
Fields inherited from interface ccc.client.core.Action
UI_CONSTANTS, USER_ACTIONS
 
Constructor Summary
UpdateCommentAction(Comment comment)
          Constructor.
 
Method Summary
protected  Request getRequest()
          Get the HTTP request for this action.
 Request update(Comment comment)
          Update this comment.
 
Methods inherited from class ccc.client.core.RemotingAction
beforeExecute, encode, execute, fireEvent, getActionName, getBody, getParser, getPath, onFailure, onNoContent, onOK, parseResourceSummary, setExecutor, setParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateCommentAction

public UpdateCommentAction(Comment comment)
Constructor.

Parameters:
comment - The updated comment.
Method Detail

getRequest

protected Request getRequest()
Get the HTTP request for this action.

Overrides:
getRequest in class RemotingAction
Returns:
The request for this remote action.

update

public Request update(Comment comment)
Update this comment.

Parameters:
comment - The new comment data.
Returns:
The HTTP request to perform the update.


Copyright © 2010. All Rights Reserved.