Class QueryWindow

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
AbstractSubsetQueryWindow, MultiSubsetQueryWindow, ParameterQueryWindow, SaveQueryWindow, SaveTableQueryWindow, SkyColumnQueryWindow, SyntheticColumnQueryWindow

public abstract class QueryWindow extends AuxWindow
Abstract superclass for windows which are going to ask the user for some input. These are like non-modal dialogues, but share some of the TOPCAT (AuxWindow) look and feel.
See Also:
  • Field Details

    • blankBorder

      protected Border blankBorder
  • Constructor Details

    • QueryWindow

      public QueryWindow(String title, Component parent)
      Constructs a new QueryWindow with OK and Cancel buttons.
      Parameters:
      title - title to put in the window heading
      parent - parent component, used for positioning the window
    • QueryWindow

      public QueryWindow(String title, Component parent, boolean ok, boolean cancel)
      Constructs a new QueryWindow.
      Parameters:
      title - title to put in the window heading
      parent - parent component, used for positioning the window
      ok - whether to include an OK button
      cancel - whether to include a Cancel button
  • Method Details

    • perform

      protected abstract boolean perform()
      This method will be invoked when the OK button is pushed or the user otherwise indicates that he has filled in the form.
      Returns:
      true if the action is complete in some sense. The window will be disposed if true is returned, otherwise it will remain posted.
    • getStack

      protected uk.ac.starlink.table.gui.LabelledComponentStack getStack()
      Returns a stack of components suitable for adding new query boxes to.
      Returns:
      the stack
    • getAuxControlPanel

      public JPanel getAuxControlPanel()
      Returns a panel which can be used by subclasses to place custom controls. The panel returned by AuxWindow.getControlPanel() is used for the OK and Cancel controls.
      Returns:
      a container for custom controls
    • invokeOK

      public void invokeOK()
      Programatically push the OK button.
    • invokeCancel

      public void invokeCancel()
      Programatically push the Cancel button.
    • setVisible

      public void setVisible(boolean isVis)
      Override the setVisible method to perform some extra actions when the window is popped up on the first or subsequent occasions.
      Overrides:
      setVisible in class AuxWindow