net.sf.doolin.gui.action
Class AbstractSimpleGUIAction

java.lang.Object
  extended by net.sf.doolin.gui.action.AbstractGUIAction
      extended by net.sf.doolin.gui.action.AbstractSimpleGUIAction
All Implemented Interfaces:
GUIAction, org.springframework.beans.factory.BeanNameAware
Direct Known Subclasses:
AbstractTypedGUIAction, ActionAbout, BusMonitoringTestAction, CloseWindowAction, DialogAction, GUITaskAction, MethodGUIAction, NOPGUIAction, OpenItemAction, OpenViewAction, PromptGUIAction, ServiceGUIAction

public abstract class AbstractSimpleGUIAction
extends AbstractGUIAction
implements org.springframework.beans.factory.BeanNameAware

This class provides support for the text and the icon.

Author:
Damien Coraboeuf

Constructor Summary
AbstractSimpleGUIAction()
           
 
Method Summary
 String getIconId()
          Gets the icon id.
 GUIExpression getIconIDExpression(ActionContext context)
          Icon for the action
 String getId()
          ID for the action
 String getShortcut()
          Gets the shortcut.
 GUIExpression getShortcutExpression(ActionContext context)
          Shortcut for the action
 GUIExpression getTextExpression(ActionContext context)
          Text for the action
 String getTip()
          Gets the tip.
 GUIExpression getTipExpression(ActionContext context)
          Tip for the action
 String getTitle()
          Gets the title.
 void init()
          Lazy initialisation of attributes.
 void setBeanName(String name)
          .
 void setIconId(String iconId)
          Sets the icon id.
 void setShortcut(String shortcut)
          Sets the shortcut.
 void setTip(String tip)
          Sets the tip.
 void setTitle(String title)
          Sets the title.
 String toString()
          String representation (id).
 
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, wait, wait, wait
 

Constructor Detail

AbstractSimpleGUIAction

public AbstractSimpleGUIAction()
Method Detail

getIconId

public String getIconId()
Gets the icon id.

Returns:
the icon id

getIconIDExpression

public GUIExpression getIconIDExpression(ActionContext context)
Description copied from interface: GUIAction
Icon for the action

Specified by:
getIconIDExpression in interface GUIAction
Parameters:
context - Context for the action
Returns:
Icon model

getId

public String getId()
Description copied from interface: GUIAction
ID for the action

Specified by:
getId in interface GUIAction
Returns:
ID

getShortcut

public String getShortcut()
Gets the shortcut.

Returns:
the shortcut

getShortcutExpression

public GUIExpression getShortcutExpression(ActionContext context)
Shortcut for the action.

Specified by:
getShortcutExpression in interface GUIAction
Parameters:
context - the context
Returns:
the shortcut model

getTextExpression

public GUIExpression getTextExpression(ActionContext context)
Text for the action.

Specified by:
getTextExpression in interface GUIAction
Parameters:
context - the context
Returns:
the text model

getTip

public String getTip()
Gets the tip.

Returns:
the tip

getTipExpression

public GUIExpression getTipExpression(ActionContext context)
Tip for the action.

Specified by:
getTipExpression in interface GUIAction
Parameters:
context - the context
Returns:
the tip model

getTitle

public String getTitle()
Gets the title.

Returns:
the title

init

public void init()
Lazy initialisation of attributes.


setBeanName

public void setBeanName(String name)
.

Specified by:
setBeanName in interface org.springframework.beans.factory.BeanNameAware
Parameters:
name - the name

setIconId

public void setIconId(String iconId)
Sets the icon id.

Parameters:
iconId - the new icon id

setShortcut

public void setShortcut(String shortcut)
Sets the shortcut.

Parameters:
shortcut - the new shortcut

setTip

public void setTip(String tip)
Sets the tip.

Parameters:
tip - the new tip

setTitle

public void setTitle(String title)
Sets the title.

Parameters:
title - the new title

toString

public String toString()
String representation (id).

Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.