Class CSSMediaPanel.Dialog

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

public static class CSSMediaPanel.Dialog extends JDialog implements ActionMap
A dialog to edit/add/remove CSS media.
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:
    • returnCode

      protected int returnCode
      The return code.
    • listeners

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

    • Dialog

      public Dialog()
      Constructs a new Dialog to edit/add/remove CSS media.
    • Dialog

      public Dialog(Component parent, String title, List mediaList)
      Constructs a new Dialog to edit/add/remove CSS media.
      Parameters:
      parent - the parent of this dialog
      title - the title of this dialog
      mediaList - the media list
    • Dialog

      public Dialog(Component parent, String title, String media)
      Constructs a new Dialog to edit/add/remove CSS media.
      Parameters:
      parent - the parent of this dialog
      title - the title of this dialog
      media - the media list
  • Method Details

    • getReturnCode

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