com.gwtplatform.dispatch.server.actionhandler
Class ActionResult<A extends Action<R>,R extends Result>
java.lang.Object
com.gwtplatform.dispatch.server.actionhandler.ActionResult<A,R>
- Type Parameters:
A
- The action type.R
- The result type.
public class ActionResult<A extends Action<R>,R extends Result>
- extends Object
This contains both the original Action
and the Result
of that
action. It also indicates if this action was executed (
ActionHandler.execute(Action, com.gwtplatform.dispatch.server.ExecutionContext)
) or undone (
ActionHandler.undo(Action, Result, com.gwtplatform.dispatch.server.ExecutionContext)
).
- Author:
- David Peterson
Constructor Summary |
ActionResult(A action,
R result,
boolean executed)
Creates a new action/result pair. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionResult
public ActionResult(A action,
R result,
boolean executed)
- Creates a new action/result pair. The
executed
field indicates if
this action was executed via
ActionHandler.execute(Action, com.gwtplatform.dispatch.server.ExecutionContext)
or undone via
ActionHandler.undo(Action, Result, com.gwtplatform.dispatch.server.ExecutionContext)
.
- Parameters:
action
- The Action
.result
- The Result
.executed
- true
if the action was executed, false
if
it was undoed.
getAction
public A getAction()
getResult
public R getResult()
isExecuted
public boolean isExecuted()
- Checks wheter this action was executed via
ActionHandler.execute(Action, com.gwtplatform.dispatch.server.ExecutionContext)
or undone via
ActionHandler.undo(Action, Result, com.gwtplatform.dispatch.server.ExecutionContext)
.
- Returns:
true
if the action was executed, false
if it was
undoed.
Copyright © 2010-2013 JBoss by Red Hat. All Rights Reserved.