Dynamic actions
Brought to you by:
lvca
Dynamic actions should be rendered using a List. Roma
will treats each entry in the List as actionNames.
This allow to handle actions dynamically.
DynamicActionListener interface will be called at every
action execution.
public interface DynamicActionListener
{
public void execute(String iActionName);
}
Something like this:
ViewClass(dynamicActions="actions")
or by
<class>
<feature dynamicActions="actions" />
</class>
Example:
ViewClass(dynamicActions="actions")
class Test implements DynamicActionListener {
...
private List<String> actions;
...
public void execute(String iActionName)
{
if( iActionName.equals("print") )
executePrint();
}
}