Class CSSMediaPanel.AddMediumDialog

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

public static class CSSMediaPanel.AddMediumDialog extends JDialog implements ActionMap
A dialog to add a new CSS medium.
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:
    • medium

      protected JComboBox medium
      The new medium.
    • returnCode

      protected int returnCode
      The return code.
    • listeners

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

    • AddMediumDialog

      public AddMediumDialog(Component parent)
      Constructs a new AddMediumDialog.
      Parameters:
      parent - the parent of this dialog
  • Method Details

    • getMedium

      public String getMedium()
      Returns the medium that might be added or null if any.
    • createContentPanel

      protected Component createContentPanel()
      Returns the panel to enter a new CSS medium.
    • createButtonsPanel

      protected Component createButtonsPanel()
      Returns the button panel.
    • getReturnCode

      public int getReturnCode()
      Returns the code that describes how the dialog has been closed (OK or CANCEL).
    • 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