ucar.unidata.ui
Class WindowHolder

java.lang.Object
  extended by 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 Summary
protected  JComponent contents
          _more_
protected  JDialog dialog
          _more_
protected  JFrame frame
          _more_
protected  Window window
          _more_
 
Constructor Summary
WindowHolder()
          Construct this object
 
Method Summary
 void actionPerformed(ActionEvent ae)
          Handle the action
 void close()
          Close me
protected  JComponent doMakeContents()
          _more_
protected  JComponent getContents()
          _more_
 JDialog getDialog()
          _more_
 JFrame getFrame()
          _more_
 Window getWindow()
          _more_
protected  String getWindowTitle()
          _more_
 boolean isShowing()
          _more_
 void removeAll()
          _more_
 void setMenuBar(JMenuBar menuBar)
           
 void setWindowTitle(String title)
          Set the title of the window to the given title
protected  boolean shouldMakeDialog()
          _more_
 void show()
          Open me
 void show(boolean modal)
          Open me
 void showModal()
          _more_
 void toFront()
          Bring the dialog to the front
protected  void windowIsClosing()
          _more_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contents

protected JComponent contents
_more_


dialog

protected JDialog dialog
_more_


frame

protected JFrame frame
_more_


window

protected Window window
_more_

Constructor Detail

WindowHolder

public WindowHolder()
Construct this object

Method Detail

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