Class UserStyleDialog

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

public class UserStyleDialog extends JDialog implements ActionMap
This class represents a dialog to select the user style sheet.
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
    • panel

      protected UserStyleDialog.Panel panel
      The main panel.
    • chosenPath

      protected String chosenPath
      The chosen path.
    • returnCode

      protected int returnCode
      The last return code.
    • listeners

      protected Map listeners
      The map that contains the listeners
  • Constructor Details

    • UserStyleDialog

      public UserStyleDialog(JFrame f)
      Creates a new user style dialog.
  • Method Details

    • showDialog

      public int showDialog()
      Shows the dialog.
      Returns:
      OK_OPTION or CANCEL_OPTION.
    • getPath

      public String getPath()
      Returns the chosen path or null.
    • setPath

      public void setPath(String s)
      Sets the current dialog path.
    • createButtonsPanel

      protected JPanel createButtonsPanel()
      Creates the OK/Cancel buttons panel
    • 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