ccc.client.gwt.remoting
Class DeleteResourceAction

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

public class DeleteResourceAction
extends RemotingAction

Publish a resource.

Author:
Civic Computing Ltd.

Field Summary
 
Fields inherited from interface ccc.client.core.Action
UI_CONSTANTS, USER_ACTIONS
 
Constructor Summary
DeleteResourceAction(SingleSelectionModel selectionModel)
          Constructor.
 
Method Summary
protected  boolean beforeExecute()
          Handler method called immediately before an action is executed.
protected  java.lang.String getPath()
          Determine the server path for this action.
protected  void onNoContent(Response response)
          Handle a '204 NO CONTENT' response from the remote server.
 
Methods inherited from class ccc.client.core.RemotingAction
encode, execute, fireEvent, getActionName, getBody, getParser, getRequest, onFailure, onOK, parseResourceSummary, setExecutor, setParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteResourceAction

public DeleteResourceAction(SingleSelectionModel selectionModel)
Constructor.

Parameters:
selectionModel - The selection model to use.
Method Detail

getPath

protected java.lang.String getPath()
Determine the server path for this action.

Overrides:
getPath in class RemotingAction
Returns:
The server path for the resource.

onNoContent

protected void onNoContent(Response response)
Handle a '204 NO CONTENT' response from the remote server.

Overrides:
onNoContent in class RemotingAction
Parameters:
response - The server response.

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.


Copyright © 2010. All Rights Reserved.