ccc.client.gwt.remoting
Class GetImagesPagedAction
java.lang.Object
ccc.client.core.RemotingAction
ccc.client.gwt.remoting.GetImagesPagedAction
- All Implemented Interfaces:
- Action
public abstract class GetImagesPagedAction
- extends RemotingAction
Get a list of all images from the CCC server.
- Author:
- Civic Computing Ltd.
Method Summary |
protected abstract void |
execute(java.util.Collection<File> images,
int totalCount)
Handle the data returned from the server. |
protected java.lang.String |
getPath()
Determine the server path for this action. |
protected Request |
getRequest()
Get the HTTP request for this action. |
Methods inherited from class ccc.client.core.RemotingAction |
beforeExecute, encode, execute, fireEvent, getActionName, getBody, getParser, onFailure, onNoContent, onOK, parseResourceSummary, setExecutor, setParser |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetImagesPagedAction
public GetImagesPagedAction(java.lang.String actionName,
ResourceSummary parent,
int pageNo,
int pageSize)
- Constructor.
- Parameters:
parent
- The folder containing the images.actionName
- Local-specific name for the action.pageNo
- The page to display.pageSize
- The number of results per page.
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.
getRequest
protected Request getRequest()
- Get the HTTP request for this action.
- Overrides:
getRequest
in class RemotingAction
- Returns:
- The request for this remote action.
execute
protected abstract void execute(java.util.Collection<File> images,
int totalCount)
- Handle the data returned from the server.
- Parameters:
images
- The available images.totalCount
- The total comments available on the server.
Copyright © 2010. All Rights Reserved.