Class WindowHolder

java.lang.Object
ucar.unidata.ui.WindowHolder
All Implemented Interfaces:
ActionListener, EventListener
Direct Known Subclasses:
ColorTableEditor, IdvManager

public abstract class WindowHolder extends Object implements ActionListener
This is a base class that holds a dialog
Author:
IDV development team
  • Field Details

    • contents

      protected JComponent contents
      _more_
    • dialog

      protected JDialog dialog
      _more_
    • frame

      protected JFrame frame
      _more_
    • window

      protected Window window
      _more_
  • Constructor Details

    • WindowHolder

      public WindowHolder()
      Construct this object
  • Method Details

    • setMenuBar

      public void setMenuBar(JMenuBar menuBar)
    • getWindow

      public Window getWindow()
      _more_
      Returns:
      _more_
    • shouldMakeDialog

      protected boolean shouldMakeDialog()
      _more_
      Returns:
      _more_
    • toFront

      public void toFront()
      Bring the dialog to the front
    • windowIsClosing

      protected void windowIsClosing()
      _more_
    • getDialog

      public JDialog getDialog()
      _more_
      Returns:
      _more_
    • getFrame

      public JFrame getFrame()
      _more_
      Returns:
      _more_
    • isShowing

      public boolean isShowing()
      _more_
      Returns:
      _more_
    • removeAll

      public void removeAll()
      _more_
    • show

      public void show()
      Open me
    • showModal

      public void showModal()
      _more_
    • setWindowTitle

      public void setWindowTitle(String title)
      Set the title of the window to the given title
      Parameters:
      title - The window title
    • show

      public void show(boolean modal)
      Open me
      Parameters:
      modal - _more_
    • close

      public void close()
      Close me
    • getWindowTitle

      protected String getWindowTitle()
      _more_
      Returns:
      _more_
    • doMakeContents

      protected JComponent doMakeContents()
      _more_
      Returns:
      _more_
    • getContents

      protected JComponent getContents()
      _more_
      Returns:
      _more_
    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Handle the action
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      ae - The action