org.zkoss.zest.sys
Interface ActionDefinition

All Known Implementing Classes:
ActionDefinitionImpl

public interface ActionDefinition

The action definition.

Author:
tomyeh

Method Summary
 java.lang.String execute(ActionContext ctx, java.lang.Object action)
          Invokes the action.
 java.lang.Object getAction(ActionContext ctx)
          Returns the action if the specified request matches this action definition, or null if not matched.
 ViewInfo getViewInfo(ActionContext ctx, java.lang.String result)
          Returns the URI for the given result, or null if not matched.
 

Method Detail

getAction

java.lang.Object getAction(ActionContext ctx)
                           throws java.lang.Exception
Returns the action if the specified request matches this action definition, or null if not matched. An action could be an instance of any object.

Throws:
java.lang.Exception

execute

java.lang.String execute(ActionContext ctx,
                         java.lang.Object action)
                         throws java.lang.Exception
Invokes the action.

Parameters:
action - the action (never null) to invoke. It is the returned value of getAction(org.zkoss.zest.ActionContext).
Throws:
java.lang.Exception

getViewInfo

ViewInfo getViewInfo(ActionContext ctx,
                     java.lang.String result)
                     throws java.lang.Exception
Returns the URI for the given result, or null if not matched.

Parameters:
result - the result of the execution of an action. It is the returned value of execute(org.zkoss.zest.ActionContext, java.lang.Object).
Throws:
java.lang.Exception
Since:
1.1.0


Copyright © 2005-2010 Potix Corporation. All Rights Reserved.