A
- The action type.R
- The result type.public class ActionResult<A extends Action<R>,R extends Result> extends Object
Action
and the Result
of that action. It also indicates if this
action was executed (ActionHandler.execute(Action, com.gwtplatform.dispatch.rpc.server.ExecutionContext)
)
or undone (ActionHandler.undo(Action, Result, com.gwtplatform.dispatch.rpc.server.ExecutionContext)
).Constructor and Description |
---|
ActionResult(A action,
R result,
boolean executed)
Creates a new action/result pair.
|
Modifier and Type | Method and Description |
---|---|
A |
getAction() |
R |
getResult() |
boolean |
isExecuted()
Checks wheter this action was executed via
ActionHandler.execute(Action, com.gwtplatform.dispatch.rpc.server.ExecutionContext) or undone via
ActionHandler.undo(Action, Result, com.gwtplatform.dispatch.rpc.server.ExecutionContext) . |
public ActionResult(A action, R result, boolean executed)
executed
field indicates if this action was executed via
ActionHandler.execute(Action, com.gwtplatform.dispatch.rpc.server.ExecutionContext)
or undone via
ActionHandler.undo(Action, Result, com.gwtplatform.dispatch.rpc.server.ExecutionContext)
.public A getAction()
public R getResult()
public boolean isExecuted()
ActionHandler.execute(Action, com.gwtplatform.dispatch.rpc.server.ExecutionContext)
or undone via
ActionHandler.undo(Action, Result, com.gwtplatform.dispatch.rpc.server.ExecutionContext)
.true
if the action was executed, false
if it was undoed.Copyright © 2010–2014 Arcbees. All rights reserved.