GWTP Dispatch Server Base 0.6-redhat-1

com.gwtplatform.dispatch.server.actionhandler
Class ActionResult<A extends Action<R>,R extends Result>

java.lang.Object
  extended by 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.
 
Method Summary
 A getAction()
           
 R getResult()
           
 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.

GWTP Dispatch Server Base 0.6-redhat-1

Copyright © 2010-2012 ArcBees. All Rights Reserved.