|
||||||||||
| 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.edit.GUIEditAction
public abstract class GUIEditAction
This GUIAction is a support for the tasks that can be done and
undone.
| Constructor Summary | |
|---|---|
GUIEditAction()
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
doExecute(ActionContext context)
Executes the action and throws any kind of error. |
protected abstract void |
execute(GUIEditManager editManager)
Executes this action for its associated GUIEditManager. |
protected abstract DisplayState |
getActionState(GUIEditManager editManager)
Gets the display state of this action according to the state of the task manager |
protected abstract String |
getActionText(GUIEditManager editManager)
Gets the text of this action according to the state of the task manager |
protected GUIEditManager |
getEditManager(ActionContext actionContext)
Gets the task manager from the action context |
String |
getEditManagerPropertyPath()
Gets the path to the property that holds the task manager. |
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 |
setBeanName(String name)
|
void |
setEditManagerPropertyPath(String undoManagerPropertyPath)
Sets the path to the property that holds the task manager. |
void |
setId(String id)
Sets the ID of this action |
| 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 GUIEditAction()
DisplayStateHandler that enables or disables
this action according to the state of the task manager.
| Method Detail |
|---|
protected void doExecute(ActionContext context)
throws Exception
AbstractGUIAction
doExecute in class AbstractGUIActioncontext - the context
Exception - the exceptionprotected abstract void execute(GUIEditManager editManager)
GUIEditManager.
editManager - Task managerprotected abstract DisplayState getActionState(GUIEditManager editManager)
editManager - task manager
protected abstract String getActionText(GUIEditManager editManager)
editManager - Task manager
protected GUIEditManager getEditManager(ActionContext actionContext)
actionContext - Action context
ActionContext.getData(),
setEditManagerPropertyPath(String)public String getEditManagerPropertyPath()
public GUIExpression getIconIDExpression(ActionContext actionContext)
GUIAction
getIconIDExpression in interface GUIActionactionContext - Context for the action
public String getId()
GUIAction
getId in interface GUIActionpublic GUIExpression getShortcutExpression(ActionContext actionContext)
GUIAction
getShortcutExpression in interface GUIActionactionContext - Context for the action
public GUIExpression getTextExpression(ActionContext actionContext)
GUIAction
getTextExpression in interface GUIActionactionContext - Context for the action
public GUIExpression getTipExpression(ActionContext actionContext)
GUIAction
getTipExpression in interface GUIActionactionContext - Context for the action
public void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setEditManagerPropertyPath(String undoManagerPropertyPath)
undoManagerPropertyPath - Property pathpublic void setId(String id)
id - ID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||