|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zest.sys.impl.ActionDefinitionImpl
public class ActionDefinitionImpl
The default implementation of ActionDefinition
, used
by ParserImpl
.
Constructor Summary | |
---|---|
ActionDefinitionImpl(java.lang.String path,
java.lang.Class<?> klass,
java.lang.String method,
java.util.Map<java.lang.String,ViewInfoProxy> results)
|
|
ActionDefinitionImpl(java.lang.String path,
java.lang.String clsnm,
java.lang.String method,
java.util.Map<java.lang.String,ViewInfoProxy> results)
|
Method Summary | |
---|---|
java.lang.String |
execute(ActionContext ac,
java.lang.Object action)
Invokes the action. |
java.lang.Object |
getAction(ActionContext ac)
Returns the action if the specified request matches this action definition, or null if not matched. |
ViewInfo |
getViewInfo(ActionContext ac,
java.lang.String result)
Returns the URI for the given result, or null if not matched. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionDefinitionImpl(java.lang.String path, java.lang.Class<?> klass, java.lang.String method, java.util.Map<java.lang.String,ViewInfoProxy> results) throws java.lang.ClassNotFoundException
klass
- the class of the actionresults
- a map of result to the view's URI
java.lang.ClassNotFoundException
public ActionDefinitionImpl(java.lang.String path, java.lang.String clsnm, java.lang.String method, java.util.Map<java.lang.String,ViewInfoProxy> results) throws java.lang.ClassNotFoundException
clsnm
- the class's name. EL is allowed.
java.lang.ClassNotFoundException
Method Detail |
---|
public java.lang.Object getAction(ActionContext ac) throws java.lang.Exception
ActionDefinition
getAction
in interface ActionDefinition
java.lang.Exception
public java.lang.String execute(ActionContext ac, java.lang.Object action) throws java.lang.Exception
ActionDefinition
execute
in interface ActionDefinition
action
- the action (never null) to invoke. It is the returned
value of ActionDefinition.getAction(org.zkoss.zest.ActionContext)
.
java.lang.Exception
public ViewInfo getViewInfo(ActionContext ac, java.lang.String result) throws java.lang.Exception
ActionDefinition
getViewInfo
in interface ActionDefinition
result
- the result of the execution of an action.
It is the returned value of ActionDefinition.execute(org.zkoss.zest.ActionContext, java.lang.Object)
.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |