Skip navigation links


com.essbase.eas.ui
Class StandardMessages

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


public class StandardMessages
extends java.lang.Object

works in conjunction with JOptionPane to display certain standard types of warning, confirmation, and error messages.

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

Method Summary
static int showComplexMessage(java.util.ResourceBundle bundle, java.lang.String titleKey, java.lang.String[] values, boolean[] isValueKey, int optionType, int messageType)
          displays a more complex dialog.
static int showConfirmDelete(java.util.ResourceBundle bundle, java.lang.String titleKey, java.lang.String messageKey, java.lang.String[] names, int optionType)
          displays a standard JOptionDialog for deleting one or more objects.
static int showConfirmDelete(java.lang.String title, java.lang.String message, java.lang.String[] names, int optionType)
          displays a standard JOptionDialog for deleting one or more objects.
static int showConfirmDialog(java.awt.Component parentComponent, java.lang.Object message, java.lang.String title, int optionType)
           
static int showConfirmDialog(java.awt.Component parentComponent, java.lang.Object message, java.lang.String title, int optionType, int messageType)
           
static int showConfirmDialog(java.awt.Component parentComponent, java.lang.Object message, java.lang.String title, int optionType, int messageType, javax.swing.Icon icon)
           
static void showErrorMessage(java.util.ResourceBundle bundle, java.lang.String titleKey, java.lang.String messageKey)
          displays a simple dialog ...
static void showErrorMessage(java.util.ResourceBundle bundle, java.lang.String titleKey, java.lang.String[] values, boolean[] isValueKey, int messageType)
           
static void showErrorMessage(java.lang.String title, java.lang.String message)
           
static int showExceptionMessage(java.util.ResourceBundle bundle, java.lang.String titleKey, java.lang.String[] values, boolean[] isValueKey, java.lang.Exception exception, int optionType, int messageType)
          displays a message for a java exception.
static int showFormattedMessage(java.util.ResourceBundle bundle, java.lang.String titleKey, java.lang.String patternKey, java.lang.Object[] arguments, int optionType, int messageType)
          displays a more complex dialog.
static java.lang.String showInputDialog(java.util.ResourceBundle bundle, java.lang.String title, java.lang.String message, int option)
          displays a simple input dialog
static java.lang.String showInputDialog(java.util.ResourceBundle bundle, java.lang.String title, java.lang.String message, int option, javax.swing.Icon icon, java.lang.Object[] selectionValues, java.lang.Object selectedValue)
          displays a simple input dialog
static int showMessage(java.util.ResourceBundle bundle, java.lang.String titleKey, java.lang.String messageKey, int optionType, int messageType)
          displays a simple dialog ...
static int showMessageDialog(java.awt.Component parentComponent, java.lang.Object message, java.lang.String title, int messageType)
           
static int showMessageDialog(java.awt.Component parentComponent, java.lang.Object message, java.lang.String title, int messageType, javax.swing.Icon icon)
           
static void showMessageDialog(java.util.ResourceBundle bundle, java.lang.String titleKey, java.lang.String messageKey, int messageType)
          Brings up a dialog that displays a message using a default icon determined by the messageType parameter.
static int showOptionDialog(java.awt.Component parentComponent, java.lang.Object message, java.lang.String title, int optionType, int messageType, javax.swing.Icon icon)
           
static int showOptionDialog(java.awt.Component parentComponent, java.lang.Object message, java.lang.String title, int optionType, int messageType, javax.swing.Icon icon, java.lang.Object[] options, java.lang.Object initialValue)
           
static int showStatus(java.util.ResourceBundle bundle, java.lang.String titleKey, java.lang.String messageKey, boolean succeeded)
           

 

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

 

Method Detail

showConfirmDelete

public static int showConfirmDelete(java.lang.String title,
                                    java.lang.String message,
                                    java.lang.String[] names,
                                    int optionType)
displays a standard JOptionDialog for deleting one or more objects. The message will be formatted with a blank line and then a list of the objects being deleted. The dialog will have Yes/No buttons, so the message is expected to be phrased in the "are you sure you want to continue?" style.

showConfirmDelete

public static int showConfirmDelete(java.util.ResourceBundle bundle,
                                    java.lang.String titleKey,
                                    java.lang.String messageKey,
                                    java.lang.String[] names,
                                    int optionType)
displays a standard JOptionDialog for deleting one or more objects. The message will be formatted with a blank line and then a list of the objects being deleted. The dialog will have Yes/No buttons, so the message is expected to be phrased in the "are you sure you want to continue?" style.

showErrorMessage

public static void showErrorMessage(java.util.ResourceBundle bundle,
                                    java.lang.String titleKey,
                                    java.lang.String messageKey)
displays a simple dialog ...

showErrorMessage

public static void showErrorMessage(java.lang.String title,
                                    java.lang.String message)

showMessageDialog

public static void showMessageDialog(java.util.ResourceBundle bundle,
                                     java.lang.String titleKey,
                                     java.lang.String messageKey,
                                     int messageType)
Brings up a dialog that displays a message using a default icon determined by the messageType parameter.

showMessage

public static int showMessage(java.util.ResourceBundle bundle,
                              java.lang.String titleKey,
                              java.lang.String messageKey,
                              int optionType,
                              int messageType)
displays a simple dialog ...

showInputDialog

public static java.lang.String showInputDialog(java.util.ResourceBundle bundle,
                                               java.lang.String title,
                                               java.lang.String message,
                                               int option)
displays a simple input dialog

showInputDialog

public static java.lang.String showInputDialog(java.util.ResourceBundle bundle,
                                               java.lang.String title,
                                               java.lang.String message,
                                               int option,
                                               javax.swing.Icon icon,
                                               java.lang.Object[] selectionValues,
                                               java.lang.Object selectedValue)
displays a simple input dialog

showFormattedMessage

public static int showFormattedMessage(java.util.ResourceBundle bundle,
                                       java.lang.String titleKey,
                                       java.lang.String patternKey,
                                       java.lang.Object[] arguments,
                                       int optionType,
                                       int messageType)
displays a more complex dialog. Using the java.text.MessageFormat class.

showComplexMessage

public static int showComplexMessage(java.util.ResourceBundle bundle,
                                     java.lang.String titleKey,
                                     java.lang.String[] values,
                                     boolean[] isValueKey,
                                     int optionType,
                                     int messageType)
displays a more complex dialog. Warning: the two array arguments must be the same length, otherwise ...

showErrorMessage

public static void showErrorMessage(java.util.ResourceBundle bundle,
                                    java.lang.String titleKey,
                                    java.lang.String[] values,
                                    boolean[] isValueKey,
                                    int messageType)

showStatus

public static int showStatus(java.util.ResourceBundle bundle,
                             java.lang.String titleKey,
                             java.lang.String messageKey,
                             boolean succeeded)

showExceptionMessage

public static int showExceptionMessage(java.util.ResourceBundle bundle,
                                       java.lang.String titleKey,
                                       java.lang.String[] values,
                                       boolean[] isValueKey,
                                       java.lang.Exception exception,
                                       int optionType,
                                       int messageType)
displays a message for a java exception. Currently we don't do anything, but we should begin calling this method so that we can institute logging if we show desire.

showConfirmDialog

public static int showConfirmDialog(java.awt.Component parentComponent,
                                    java.lang.Object message,
                                    java.lang.String title,
                                    int optionType)

showConfirmDialog

public static int showConfirmDialog(java.awt.Component parentComponent,
                                    java.lang.Object message,
                                    java.lang.String title,
                                    int optionType,
                                    int messageType)

showConfirmDialog

public static int showConfirmDialog(java.awt.Component parentComponent,
                                    java.lang.Object message,
                                    java.lang.String title,
                                    int optionType,
                                    int messageType,
                                    javax.swing.Icon icon)

showMessageDialog

public static int showMessageDialog(java.awt.Component parentComponent,
                                    java.lang.Object message,
                                    java.lang.String title,
                                    int messageType)

showMessageDialog

public static int showMessageDialog(java.awt.Component parentComponent,
                                    java.lang.Object message,
                                    java.lang.String title,
                                    int messageType,
                                    javax.swing.Icon icon)

showOptionDialog

public static int showOptionDialog(java.awt.Component parentComponent,
                                   java.lang.Object message,
                                   java.lang.String title,
                                   int optionType,
                                   int messageType,
                                   javax.swing.Icon icon)

showOptionDialog

public static int showOptionDialog(java.awt.Component parentComponent,
                                   java.lang.Object message,
                                   java.lang.String title,
                                   int optionType,
                                   int messageType,
                                   javax.swing.Icon icon,
                                   java.lang.Object[] options,
                                   java.lang.Object initialValue)

Skip navigation links


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