Class EditFilterDialog

All Implemented Interfaces:
WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener

public class EditFilterDialog extends JPanel implements ChangeListener, WindowListener
This class displays a JDialog containing all the defined Filters. The top-level filters appear as tabs in the dialog; if there are combining filters as children of the top combining filter, their sub-filters will be displayed as bordered sub-panels on the tab.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • EditFilterDialog

      public EditFilterDialog(ResourceBundle msgBundle, Window parent, Filter mainFilter, JMenuBar menuBar)
      Create an instance of the filter editing panel.
      Parameters:
      msgBundle - ResourceBundle to obtain localized UI strings
      parent - Window that will contain the panel
      mainFilter - the top Filter in the Filter hierarchy
      menuBar - JMenuBar to add filter controls to
  • Method Details

    • showEditFilterDialog

      public static void showEditFilterDialog(Filter mainFilter, String dialogTitleTag)
      Generate and display the filter dialog.
      Parameters:
      mainFilter - the top Filter in the Filter hierarchy
      dialogTitleTag - bundle tag for title to display on dialog
    • createFilterUI

      public static Object createFilterUI(Filter subFilter)
      Get an instance of the UI class for the specified Filter object.
      Parameters:
      subFilter - Filter object to find a GUI for
      Returns:
      GUI object for the Filter
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Invoked when the target of the listener has changed its state.
      Specified by:
      stateChanged in interface ChangeListener
      Parameters:
      e - a ChangeEvent object
    • windowActivated

      public void windowActivated(WindowEvent e)
      Invoked when the Window is set to be the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.
      Specified by:
      windowActivated in interface WindowListener
    • windowOpened

      public void windowOpened(WindowEvent e)
      Invoked the first time a window is made visible.
      Specified by:
      windowOpened in interface WindowListener
    • windowClosing

      public void windowClosing(WindowEvent e)
      Invoked when the user attempts to close the window from the window's system menu.
      Specified by:
      windowClosing in interface WindowListener
    • windowClosed

      public void windowClosed(WindowEvent e)
      Invoked when a window has been closed as the result of calling dispose on the window.
      Specified by:
      windowClosed in interface WindowListener
    • windowIconified

      public void windowIconified(WindowEvent e)
      Invoked when a window is changed from a normal to a minimized state. For many platforms, a minimized window is displayed as the icon specified in the window's iconImage property.
      Specified by:
      windowIconified in interface WindowListener
      See Also:
    • windowDeiconified

      public void windowDeiconified(WindowEvent e)
      Invoked when a window is changed from a minimized to a normal state.
      Specified by:
      windowDeiconified in interface WindowListener
    • windowDeactivated

      public void windowDeactivated(WindowEvent e)
      Invoked when a Window is no longer the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.
      Specified by:
      windowDeactivated in interface WindowListener