esmska.utils
Class L10N
java.lang.Object
esmska.utils.L10N
public class L10N
- extends java.lang.Object
Class containing useful methods when doing internacionalization and localization
Field Summary |
static java.util.ResourceBundle |
l10nBundle
Resource bundle containing all translations |
Constructor Summary |
L10N()
|
Method Summary |
static void |
setLocalizedText(javax.swing.Action action,
java.lang.String text)
Set a name and mnemonics to an Action. |
static void |
setLocalizedText(javax.swing.JTabbedPane tabbedPane,
int tabIndex,
java.lang.String text)
Set a name and mnemonics to a pane in JTabbedPane. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
l10nBundle
public static final java.util.ResourceBundle l10nBundle
- Resource bundle containing all translations
L10N
public L10N()
setLocalizedText
public static void setLocalizedText(javax.swing.Action action,
java.lang.String text)
- Set a name and mnemonics to an Action.
- Parameters:
action
- Action to modifytext
- localized string containg & before character
which should be used as a mnemonics- See Also:
Mnemonics.setLocalizedText(javax.swing.AbstractButton, java.lang.String)
setLocalizedText
public static void setLocalizedText(javax.swing.JTabbedPane tabbedPane,
int tabIndex,
java.lang.String text)
- Set a name and mnemonics to a pane in JTabbedPane.
- Parameters:
tabbedPane
- tabbed pane containing the panetabIndex
- index of the pane tabtext
- localized string containg & before character
which should be used as a mnemonics- See Also:
Mnemonics.setLocalizedText(javax.swing.AbstractButton, java.lang.String)