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