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.6.2.1 2007/09/02 11:56:28 reynal Exp $
- Author:
- Sylvain Reynal
getActionName
String getActionName(String actionName)
- Parameters:
name
- 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)
- Returns:
- a localized Action tooltip for the given name (ie Swing Action.SHORT_DESCRIPTION)
- Since:
- jPicEdt
getActionHelper
String getActionHelper(String actionName)
- Returns:
- a localized Action helper (ie Swing Action.LONG_DESCRIPTION)
- Since:
- jPicEdt
getActionMnemonic
Integer getActionMnemonic(String actionName)
- Returns:
- a localized Action mnemonic (ie Swing Action.MNEMONIC_KEY)
- Since:
- jPicEdt
getActionAccelerator
KeyStroke getActionAccelerator(String actionName)
- Returns:
- a localized Action accelerator keystroke (ie Swing Action.ACCELERATOR_KEY)
- Since:
- jPicEdt
getActionIcon
Icon getActionIcon(String actionName)
- Returns:
- a localized Icon (ie Swing Action.SMALL_ICON)
- Since:
- jPicEdt
Submit a bug : syd@jpicedt.org