net.sf.doolin.gui.lf
Class LFAction

java.lang.Object
  extended by net.sf.doolin.gui.action.AbstractGUIAction
      extended by net.sf.doolin.gui.lf.LFAction
All Implemented Interfaces:
GUIAction

public class LFAction
extends AbstractGUIAction

Action that applies a look and feel for the current window

Author:
Damien Coraboeuf

Constructor Summary
LFAction()
           
 
Method Summary
protected  void doExecute(ActionContext context)
          Executes the action and throws any kind of error.
 GUIExpression getIconIDExpression(ActionContext actionContext)
          Icon for the action
 String getId()
          ID for the action
 UIManager.LookAndFeelInfo getLookAndFeelInfo()
          Gets the look and feel info.
 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 setLookAndFeelInfo(UIManager.LookAndFeelInfo lookAndFeelInfo)
          Sets the look and feel info.
 
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

LFAction

public LFAction()
Method Detail

getIconIDExpression

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

Parameters:
actionContext - Context for the action
Returns:
Icon model

getId

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

Returns:
ID

getLookAndFeelInfo

public UIManager.LookAndFeelInfo getLookAndFeelInfo()
Gets the look and feel info.

Returns:
the look and feel info

getShortcutExpression

public GUIExpression getShortcutExpression(ActionContext actionContext)
Description copied from interface: GUIAction
Shortcut for the action

Parameters:
actionContext - Context for the action
Returns:
Shortcut model

getTextExpression

public GUIExpression getTextExpression(ActionContext actionContext)
Description copied from interface: GUIAction
Text for the action

Parameters:
actionContext - Context for the action
Returns:
Text model

getTipExpression

public GUIExpression getTipExpression(ActionContext actionContext)
Description copied from interface: GUIAction
Tip for the action

Parameters:
actionContext - Context for the action
Returns:
Tip model

setLookAndFeelInfo

public void setLookAndFeelInfo(UIManager.LookAndFeelInfo lookAndFeelInfo)
Sets the look and feel info.

Parameters:
lookAndFeelInfo - the new look and feel info

doExecute

protected void doExecute(ActionContext context)
                  throws Exception
Description copied from class: AbstractGUIAction
Executes the action and throws any kind of error.

Specified by:
doExecute in class AbstractGUIAction
Parameters:
context - the context
Throws:
Exception - the exception


Copyright © 2011. All Rights Reserved.