Package esmska.utils

Class L10N


  • public class L10N
    extends java.lang.Object
    Class containing useful methods when doing internacionalization and localization
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.ResourceBundle l10nBundle
      Resource bundle containing all translations
    • Constructor Summary

      Constructors 
      Constructor Description
      L10N()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • Field Detail

      • l10nBundle

        public static final java.util.ResourceBundle l10nBundle
        Resource bundle containing all translations
    • Constructor Detail

      • L10N

        public L10N()
    • Method Detail

      • 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 modify
        text - 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 pane
        tabIndex - index of the pane tab
        text - localized string containg & before character which should be used as a mnemonics
        See Also:
        Mnemonics.setLocalizedText(javax.swing.AbstractButton, java.lang.String)