Skip navigation links


com.essbase.eas.ui
Class UIUtilities

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


public class UIUtilities
extends java.lang.Object

provides some standard UI utility methods.

Version:
1.00, 06/13/2001
Author:
Hank Cox

Field Summary
static java.awt.ComponentOrientation compOr
           
static com.essbase.eas.ui.UIUtilities.EASContainerListener easContainerListener
           
static java.lang.String OBJECTID_END
           
static java.lang.String OBJECTID_SEPARATOR
           
static java.lang.String OBJECTID_START
           

 

Method Summary
static void applyOrientation(java.awt.Component comp)
           
static java.lang.String checkEmptyString(java.lang.String text, boolean doTrim, java.util.ResourceBundle bundle, java.lang.String titleKey, java.lang.String messageKey)
          Check for empty string and show Message
static java.lang.Object checkForNullSelection(javax.swing.JComboBox component)
          checks a JComboBox for a null selection.
static java.lang.String checkRequiredTextField(javax.swing.text.JTextComponent tc, boolean doTrim, java.util.ResourceBundle bundle, java.lang.String titleKey, java.lang.String messageKey)
          checks a JTextComponent for being empty.
static java.lang.String createObjectIDFromList(java.lang.String[] names)
          Creates an essbase object identifier string for you; For example, [willow2:Demo:Basic] for a database or [willow2:Demo:Basic:Header1] for a report script.
static javax.swing.JPanel createVerticalStackPanel(java.awt.Component[] children)
          Creates a panel in which all the provided children are stacked vertically at their minimum height (doesn't fill up all available vertical space), starting at the top of the panel.
static javax.swing.JPanel createVerticalStackPanel(java.awt.Component[] children, javax.swing.border.Border border)
          2nd version of createVerticalStackPanel() which uses a border to create vertical space between each of the contained components.
static void flushEvents()
           
static void flushEvents(boolean allowEvents)
           
static void flushEvents(java.awt.Component sourceComponent)
           
static void flushEvents(java.awt.Component sourceComponent, boolean allowEvents)
           
static void groupPanelsVertically(javax.swing.JPanel[] panels)
          groups a set of panels vertically together within a BoxLayout.
static boolean isLtoR()
           
static boolean isRtoL()
           
static void setPrefHeight(javax.swing.JComponent[] comps)
           
static void setPrefWidth(javax.swing.JComponent[] comps)
           
static void updateComponentTreeUI(java.awt.Component component)
           
static void updateFont(java.awt.Component c)
           
static void updateTreeUI(javax.swing.JTree tree)
          updates a tree component UI.

 

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

 

Field Detail

compOr

public static final java.awt.ComponentOrientation compOr

easContainerListener

public static final com.essbase.eas.ui.UIUtilities.EASContainerListener easContainerListener

OBJECTID_START

public static final java.lang.String OBJECTID_START
See Also:
Constant Field Values

OBJECTID_SEPARATOR

public static final java.lang.String OBJECTID_SEPARATOR
See Also:
Constant Field Values

OBJECTID_END

public static final java.lang.String OBJECTID_END
See Also:
Constant Field Values

Method Detail

checkRequiredTextField

public static java.lang.String checkRequiredTextField(javax.swing.text.JTextComponent tc,
                                                      boolean doTrim,
                                                      java.util.ResourceBundle bundle,
                                                      java.lang.String titleKey,
                                                      java.lang.String messageKey)
                                               throws TextFieldEmptyException
checks a JTextComponent for being empty. If the component is empty, displays the error message, sets the focus to the component, and throws an exception.
Throws:
TextFieldEmptyException

checkEmptyString

public static java.lang.String checkEmptyString(java.lang.String text,
                                                boolean doTrim,
                                                java.util.ResourceBundle bundle,
                                                java.lang.String titleKey,
                                                java.lang.String messageKey)
                                         throws TextFieldEmptyException
Check for empty string and show Message
Throws:
TextFieldEmptyException

groupPanelsVertically

public static void groupPanelsVertically(javax.swing.JPanel[] panels)
groups a set of panels vertically together within a BoxLayout.

updateTreeUI

public static void updateTreeUI(javax.swing.JTree tree)
updates a tree component UI. There seems to be a bug in the generic JTree model and TreeModel handling that nodes aren't changed when the UI look and feel changes, so ...

createObjectIDFromList

public static java.lang.String createObjectIDFromList(java.lang.String[] names)
Creates an essbase object identifier string for you; For example, [willow2:Demo:Basic] for a database or [willow2:Demo:Basic:Header1] for a report script.

createVerticalStackPanel

public static javax.swing.JPanel createVerticalStackPanel(java.awt.Component[] children,
                                                          javax.swing.border.Border border)
2nd version of createVerticalStackPanel() which uses a border to create vertical space between each of the contained components. For this to work properly, the best solution is to use an empty border with left and right spacing set to "0" (zero).

createVerticalStackPanel

public static javax.swing.JPanel createVerticalStackPanel(java.awt.Component[] children)
Creates a panel in which all the provided children are stacked vertically at their minimum height (doesn't fill up all available vertical space), starting at the top of the panel.

checkForNullSelection

public static java.lang.Object checkForNullSelection(javax.swing.JComboBox component)
                                              throws NullSelectionException
checks a JComboBox for a null selection. If the selection is null it will throw a NullSelectionException
Throws:
NullSelectionException

flushEvents

public static void flushEvents()

flushEvents

public static void flushEvents(java.awt.Component sourceComponent)

flushEvents

public static void flushEvents(boolean allowEvents)

flushEvents

public static void flushEvents(java.awt.Component sourceComponent,
                               boolean allowEvents)

updateComponentTreeUI

public static void updateComponentTreeUI(java.awt.Component component)

updateFont

public static void updateFont(java.awt.Component c)

setPrefHeight

public static void setPrefHeight(javax.swing.JComponent[] comps)

setPrefWidth

public static void setPrefWidth(javax.swing.JComponent[] comps)

isLtoR

public static boolean isLtoR()

isRtoL

public static boolean isRtoL()

applyOrientation

public static void applyOrientation(java.awt.Component comp)

Skip navigation links


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