|
||||||||||
| 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.AbstractTextAction
public abstract class AbstractTextAction
Abstract implementation for an action is based on a text key.
| Constructor Summary | |
|---|---|
AbstractTextAction(String id,
String text,
boolean textKey)
Constructor for the action |
|
| Method Summary | |
|---|---|
GUIExpression |
getIconIDExpression(ActionContext actionContext)
Icon for the action |
String |
getId()
ID for the action |
protected abstract String |
getShortcut()
Gets the shortcut for this action |
GUIExpression |
getShortcutExpression(ActionContext actionContext)
Shortcut for the action |
protected String |
getText()
Gets the plain title for the action |
GUIExpression |
getTextExpression(ActionContext actionContext)
Text for the action |
GUIExpression |
getTipExpression(ActionContext actionContext)
Tip for the action |
| Methods inherited from class net.sf.doolin.gui.action.AbstractGUIAction |
|---|
doExecute, 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 AbstractTextAction(String id,
String text,
boolean textKey)
id - Action idtext - Key for the text| Method Detail |
|---|
public GUIExpression getIconIDExpression(ActionContext actionContext)
GUIAction
actionContext - Context for the action
public String getId()
GUIAction
protected abstract String getShortcut()
KeyStroke.getKeyStroke(String)public GUIExpression getShortcutExpression(ActionContext actionContext)
GUIAction
actionContext - Context for the action
protected String getText()
public GUIExpression getTextExpression(ActionContext actionContext)
GUIAction
actionContext - Context for the action
public GUIExpression getTipExpression(ActionContext actionContext)
GUIAction
actionContext - Context for the action
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||