Package ptolemy.gui

Class QueryChooserHelper


  • public class QueryChooserHelper
    extends java.lang.Object
    A little helper class for QueryChooser classes.
    Since:
    Ptolemy II 8.0
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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