Skip navigation links


com.essbase.eas.ui
Class DialogUtils

java.lang.Object
  extended by com.essbase.eas.ui.DialogUtils


public class DialogUtils
extends java.lang.Object

This class contains static utility functions for dealing with Modal dialogs.

Version:
1.00, 07/24/2000
Author:
Hank Cox

Nested Class Summary
static class DialogUtils.MyFocusTraversalPolicy
           

 

Constructor Summary
DialogUtils()
           

 

Method Summary
static void addComponentsToContainer(java.awt.Container container, java.awt.Component[] components)
          add multiple components to a container.
static void centerDialog(javax.swing.JComponent dlg, java.awt.Component parent)
          centers a dialog in the middle of the owner.
static void centerDialog(javax.swing.JDialog dlg)
          centers a dialog in the middle of the usable screen real estate.
static void centerInOwner(javax.swing.JDialog dlg)
          centers a dialog in the middle of the owner window.
static DialogUtils.MyFocusTraversalPolicy manageFocus(java.awt.Container owner, java.awt.Component defaultFocus, java.awt.Component[][] components)
          sets the focus order of a set of components.
static com.essbase.eas.ui.DialogUtils.MyInternalFrameFocusTraversalPolicy manageFrameFocus(javax.swing.JInternalFrame owner, java.awt.Component initialComponent)
          sets the focus order of a set of components.
static void setFocusOrder(javax.swing.JComponent[][] components)
          Deprecated. Use the manageFocus method in this class. This method uses methods that have been deprecated in JDK1.4 onwards.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DialogUtils

public DialogUtils()

Method Detail

centerDialog

public static void centerDialog(javax.swing.JDialog dlg)
centers a dialog in the middle of the usable screen real estate.
Parameters:
dlg - - dialog to be centered.

centerDialog

public static void centerDialog(javax.swing.JComponent dlg,
                                java.awt.Component parent)
centers a dialog in the middle of the owner.
Parameters:
dlg - - dialog to be centered.

centerInOwner

public static void centerInOwner(javax.swing.JDialog dlg)
centers a dialog in the middle of the owner window.
Parameters:
dlg - - dialog to be centered.

setFocusOrder

public static void setFocusOrder(javax.swing.JComponent[][] components)
Deprecated. Use the manageFocus method in this class. This method uses methods that have been deprecated in JDK1.4 onwards.
sets the focus order of a set of components.
Parameters:
components - - two dimensional array of components.

addComponentsToContainer

public static void addComponentsToContainer(java.awt.Container container,
                                            java.awt.Component[] components)
add multiple components to a container.

manageFocus

public static DialogUtils.MyFocusTraversalPolicy manageFocus(java.awt.Container owner,
                                                             java.awt.Component defaultFocus,
                                                             java.awt.Component[][] components)
sets the focus order of a set of components.
Parameters:
components - - two dimensional array of components.

manageFrameFocus

public static com.essbase.eas.ui.DialogUtils.MyInternalFrameFocusTraversalPolicy manageFrameFocus(javax.swing.JInternalFrame owner,
                                                                                                  java.awt.Component initialComponent)
sets the focus order of a set of components.
Parameters:
components - - two dimensional array of components.

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.