ptolemy.gui
Class QueryChooserHelper

java.lang.Object
  extended by ptolemy.gui.QueryChooserHelper

public class QueryChooserHelper
extends java.lang.Object

A little helper class for QueryChooser classes.

Since:
Ptolemy II 8.0
Version:
$Revision: 57044 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Constructor Summary
QueryChooserHelper()
           
 
Method Summary
static java.awt.Dialog getParentDialog(java.awt.Container container)
          Determine the dialog of this frame.
static java.awt.Frame getParentFrame(java.awt.Container container)
          Determine the parent of this frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryChooserHelper

public QueryChooserHelper()
Method Detail

getParentFrame

public static java.awt.Frame getParentFrame(java.awt.Container container)
Determine the parent of this frame.

Parameters:
container - the container
Returns:
the parent frame if one exists or null if not

getParentDialog

public static java.awt.Dialog getParentDialog(java.awt.Container container)
Determine the dialog of this frame.

Parameters:
container - the container
Returns:
the parent dialog if one exists or null if not