Class LanguageDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, ActionMap

public class LanguageDialog extends JDialog implements ActionMap
This class represents a language selection dialog.
Version:
$Id: LanguageDialog.java 1733416 2016-03-03 07:07:13Z gadams $
See Also:
  • Field Details

    • OK_OPTION

      public static final int OK_OPTION
      The return value if 'OK' is chosen.
      See Also:
    • CANCEL_OPTION

      public static final int CANCEL_OPTION
      The return value if 'Cancel' is chosen.
      See Also:
    • RESOURCES

      protected static final String RESOURCES
      The resource file name
      See Also:
    • bundle

      protected static ResourceBundle bundle
      The resource bundle
    • resources

      protected static ResourceManager resources
      The resource manager
    • listeners

      protected Map listeners
      The map that contains the listeners
    • panel

      protected LanguageDialog.Panel panel
      The user languages panel.
    • returnCode

      protected int returnCode
      The last return code.
  • Constructor Details

    • LanguageDialog

      public LanguageDialog(JFrame f)
      Creates a new LanguageDialog object.
  • Method Details

    • showDialog

      public int showDialog()
      Shows the dialog.
      Returns:
      OK_CANCEL or CANCEL_OPTION.
    • setLanguages

      public void setLanguages(String s)
      Sets the user languages.
    • getLanguages

      public String getLanguages()
      Returns the user languages.
    • getAction

      public Action getAction(String key) throws MissingListenerException
      Returns the action associated with the given string or null on error
      Specified by:
      getAction in interface ActionMap
      Parameters:
      key - the key mapped with the action to get
      Throws:
      MissingListenerException - if the action is not found todo does it throw ?? seems to return null
    • createButtonsPanel

      protected JPanel createButtonsPanel()
      Creates the OK/Cancel buttons panel