|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.action.AbstractGUIAction
net.sf.doolin.gui.action.DelegateGUIAction
public class DelegateGUIAction
This action delegates the execution to another action, adapting the action context to a new value.
| Constructor Summary | |
|---|---|
DelegateGUIAction()
|
|
| Method Summary | |
|---|---|
protected void |
doExecute(ActionContext context)
Executes the action and throws any kind of error. |
GUIAction |
getAction()
Returns the target action |
com.google.common.base.Function<ActionContext,ActionContext> |
getActionContextConverter()
Returns the action context converter |
protected ActionContext |
getDelegateContext(ActionContext context)
Gets the delegated action context |
GUIExpression |
getIconIDExpression(ActionContext actionContext)
Icon for the action |
String |
getId()
ID for the action |
GUIExpression |
getShortcutExpression(ActionContext actionContext)
Shortcut for the action |
GUIExpression |
getTextExpression(ActionContext actionContext)
Text for the action |
GUIExpression |
getTipExpression(ActionContext actionContext)
Tip for the action |
void |
setAction(GUIAction action)
Sets the target action |
void |
setActionContextConverter(com.google.common.base.Function<ActionContext,ActionContext> actionContextConverter)
Sets the action context converter |
| Methods inherited from class net.sf.doolin.gui.action.AbstractGUIAction |
|---|
execute, getActionContextData, getActionContextDataExtractor, getDisplayStateHandler, getIcon, getIconService, setActionContextDataExtractor, setDisplayStateHandler, setIconService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegateGUIAction()
| Method Detail |
|---|
protected void doExecute(ActionContext context)
throws Exception
AbstractGUIAction
doExecute in class AbstractGUIActioncontext - the context
Exception - the exceptionpublic GUIAction getAction()
public com.google.common.base.Function<ActionContext,ActionContext> getActionContextConverter()
protected ActionContext getDelegateContext(ActionContext context)
context - Current action context
public GUIExpression getIconIDExpression(ActionContext actionContext)
GUIAction
actionContext - Context for the action
public String getId()
GUIAction
public GUIExpression getShortcutExpression(ActionContext actionContext)
GUIAction
actionContext - Context for the action
public GUIExpression getTextExpression(ActionContext actionContext)
GUIAction
actionContext - Context for the action
public GUIExpression getTipExpression(ActionContext actionContext)
GUIAction
actionContext - Context for the action
public void setAction(GUIAction action)
action - Actionpublic void setActionContextConverter(com.google.common.base.Function<ActionContext,ActionContext> actionContextConverter)
actionContextConverter - Action context converter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||