|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.action.AbstractGUIAction
public abstract class AbstractGUIAction
Abstract action for a default controlled behaviour.
| Constructor Summary | |
|---|---|
AbstractGUIAction()
|
|
| Method Summary | |
|---|---|
protected abstract void |
doExecute(ActionContext context)
Executes the action and throws any kind of error. |
boolean |
execute(ActionContext context)
Executes the action and deals with errors. |
protected Object |
getActionContextData(ActionContext actionContext)
Extracts the data to use from the action context. |
ActionContextDataExtractor |
getActionContextDataExtractor()
|
DisplayStateHandler |
getDisplayStateHandler()
Display state handler for this action |
Icon |
getIcon(String iconID,
IconSize iconSize)
Gets the icon according to its ID |
IconService |
getIconService()
Gets the icon service. |
void |
setActionContextDataExtractor(ActionContextDataExtractor actionContextDataExtractor)
|
void |
setDisplayStateHandler(DisplayStateHandler displayStateHandler)
Sets the display state handler. |
void |
setIconService(IconService iconService)
Sets the icon service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.doolin.gui.action.GUIAction |
|---|
getIconIDExpression, getId, getShortcutExpression, getTextExpression, getTipExpression |
| Constructor Detail |
|---|
public AbstractGUIAction()
| Method Detail |
|---|
protected abstract void doExecute(ActionContext context)
throws Exception
context - the context
Exception - the exceptionpublic boolean execute(ActionContext context)
execute in interface GUIActioncontext - the context
true if the action has been executed without errorprotected Object getActionContextData(ActionContext actionContext)
actionContext - Action context to get the data from
setActionContextDataExtractor(ActionContextDataExtractor)public ActionContextDataExtractor getActionContextDataExtractor()
public DisplayStateHandler getDisplayStateHandler()
getDisplayStateHandler in interface GUIAction
public Icon getIcon(String iconID,
IconSize iconSize)
GUIAction
getIcon in interface GUIActioniconID - Icon IDiconSize - Icon size
null if none is
available.public IconService getIconService()
public void setActionContextDataExtractor(ActionContextDataExtractor actionContextDataExtractor)
public void setDisplayStateHandler(DisplayStateHandler displayStateHandler)
displayStateHandler - the new display state handlerpublic void setIconService(IconService iconService)
iconService - the new icon service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||