ccc.client.gwt.remoting
Class CancelActionAction

java.lang.Object
  extended by ccc.client.core.RemotingAction
      extended by ccc.client.gwt.remoting.CancelActionAction
All Implemented Interfaces:
Action

public class CancelActionAction
extends RemotingAction

Cancels a CCC action.

Author:
Civic Computing Ltd.

Nested Class Summary
static class CancelActionAction.ActionCancelledCallback
          Callback handler for applying a working copy.
 
Field Summary
 
Fields inherited from interface ccc.client.core.Action
UI_CONSTANTS, USER_ACTIONS
 
Constructor Summary
CancelActionAction(ActionTable table)
          Constructor.
 
Method Summary
protected  boolean beforeExecute()
          Handler method called immediately before an action is executed.
 Request cancel(ActionSummary action)
          Cancel an action.
protected  Request getRequest()
          Get the HTTP request for this action.
 
Methods inherited from class ccc.client.core.RemotingAction
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

CancelActionAction

public CancelActionAction(ActionTable table)
Constructor.

Parameters:
table - The action table to work with.
Method Detail

beforeExecute

protected boolean beforeExecute()
Handler method called immediately before an action is executed.

You can override this method to present confirmation dialogs, etc. to users, when an action is invoked. If this method returns true the action will continue; if false is returned the action will not be executed.

Overrides:
beforeExecute in class RemotingAction
Returns:
True if the action should continue false otherwise.

getRequest

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

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

cancel

public Request cancel(ActionSummary action)
Cancel an action.

Returns:
The HTTP request to cancel this action.


Copyright © 2010. All Rights Reserved.