http://www.jpicedt.org

jpicedt.graphic.toolkit
Interface ActionLocalizer

All Known Implementing Classes:
PEActionLocalizer

public interface ActionLocalizer

This interface, once properly implemented, may be used as a parameter for a PEAction, and can feed it with localized properties (e.g. tooltip, mnemonic…). Concrete implementation may be backed, for instance, by a ResourceBundle initialized from a properties file.

Since:
jPicEdt 1.3.2
Version:
$Id: ActionLocalizer.java,v 1.11 2013/03/27 07:00:01 vincentb1 Exp $
Author:
Sylvain Reynal

Method Summary
 KeyStroke getActionAccelerator(String actionName)
          
author: Sylvain Reynal
 String getActionHelper(String actionName)
          
author: Sylvain Reynal
 Icon getActionIcon(String actionName)
          
author: Sylvain Reynal
 Integer getActionMnemonic(String actionName)
          
author: Sylvain Reynal
 String getActionName(String actionName)
          
author: Sylvain Reynal
 String getActionTooltip(String actionName)
          
author: Sylvain Reynal
 

Method Detail

getActionName

String getActionName(String actionName)

author: Sylvain Reynal

Parameters:
actionName - a non-localized action name
Returns:
a localized Action name (ie Swing Action.NAME property) for the given name
Since:
jPicEdt

getActionTooltip

String getActionTooltip(String actionName)

author: Sylvain Reynal

Returns:
a localized Action tooltip for the given name (ie Swing Action.SHORT_DESCRIPTION)
Since:
jPicEdt

getActionHelper

String getActionHelper(String actionName)

author: Sylvain Reynal

Returns:
a localized Action helper (ie Swing Action.LONG_DESCRIPTION)
Since:
jPicEdt

getActionMnemonic

Integer getActionMnemonic(String actionName)

author: Sylvain Reynal

Returns:
a localized Action mnemonic (ie Swing Action.MNEMONIC_KEY)
Since:
jPicEdt

getActionAccelerator

KeyStroke getActionAccelerator(String actionName)

author: Sylvain Reynal

Returns:
a localized Action accelerator keystroke (ie Swing Action.ACCELERATOR_KEY)
Since:
jPicEdt

getActionIcon

Icon getActionIcon(String actionName)

author: Sylvain Reynal

Returns:
a localized Icon (ie Swing Action.SMALL_ICON)
Since:
jPicEdt

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org