VLab Common 1.2

pl.psnc.vlab.util.swing.gui
Class Message

java.lang.Object
  extended by pl.psnc.vlab.util.swing.gui.Message

Deprecated. JMessage should be used instead

public abstract class Message
extends java.lang.Object

Message class - set of message dialogs

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Field Summary
static int CANCEL_OPTION
          Deprecated. Return value form class method if CANCEL is chosen
static int DEFAULT_OPTION
          Deprecated. Type used for showConfirmDialog.
static java.lang.String MESSAGE_TYPE_ERROR
          Deprecated. Error dialog
static java.lang.String MESSAGE_TYPE_INF
          Deprecated. Information dialog
static java.lang.String MESSAGE_TYPE_QUESTION
          Deprecated. Question dialog
static java.lang.String MESSAGE_TYPE_WARNING
          Deprecated. Warning dialog
static int NO_OPTION
          Deprecated. Return value form class method if NO is chosen
static int OK_CANCEL_OPTION
          Deprecated. Type used for showConfirmDialog.
static int OK_OPTION
          Deprecated. Return value form class method if OK is chosen
static int YES_NO_CANCEL_OPTION
          Deprecated. Type used for showConfirmDialog.
static int YES_NO_OPTION
          Deprecated. Type used for showConfirmDialog.
static int YES_OPTION
          Deprecated. Return value form class method if YES is chosen
 
Constructor Summary
Message()
          Deprecated.  
 
Method Summary
static int showConfirmDialog(java.awt.Component object, java.lang.Object message, java.lang.String title, int optionType, java.lang.String type)
          Deprecated. Show Info message
static void showInfoMessage(java.awt.Component object, java.lang.Object message, java.lang.String type)
          Deprecated. Show Info message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_TYPE_ERROR

public static java.lang.String MESSAGE_TYPE_ERROR
Deprecated. 
Error dialog


MESSAGE_TYPE_INF

public static java.lang.String MESSAGE_TYPE_INF
Deprecated. 
Information dialog


MESSAGE_TYPE_WARNING

public static java.lang.String MESSAGE_TYPE_WARNING
Deprecated. 
Warning dialog


MESSAGE_TYPE_QUESTION

public static java.lang.String MESSAGE_TYPE_QUESTION
Deprecated. 
Question dialog


DEFAULT_OPTION

public static final int DEFAULT_OPTION
Deprecated. 
Type used for showConfirmDialog.

See Also:
Constant Field Values

YES_NO_OPTION

public static final int YES_NO_OPTION
Deprecated. 
Type used for showConfirmDialog.

See Also:
Constant Field Values

YES_NO_CANCEL_OPTION

public static final int YES_NO_CANCEL_OPTION
Deprecated. 
Type used for showConfirmDialog.

See Also:
Constant Field Values

OK_CANCEL_OPTION

public static final int OK_CANCEL_OPTION
Deprecated. 
Type used for showConfirmDialog.

See Also:
Constant Field Values

OK_OPTION

public static final int OK_OPTION
Deprecated. 
Return value form class method if OK is chosen

See Also:
Constant Field Values

NO_OPTION

public static final int NO_OPTION
Deprecated. 
Return value form class method if NO is chosen

See Also:
Constant Field Values

YES_OPTION

public static final int YES_OPTION
Deprecated. 
Return value form class method if YES is chosen

See Also:
Constant Field Values

CANCEL_OPTION

public static final int CANCEL_OPTION
Deprecated. 
Return value form class method if CANCEL is chosen

See Also:
Constant Field Values
Constructor Detail

Message

public Message()
Deprecated. 
Method Detail

showInfoMessage

public static void showInfoMessage(java.awt.Component object,
                                   java.lang.Object message,
                                   java.lang.String type)
Deprecated. 
Show Info message

Parameters:
object - the parent compone
message - message
type - dialog type: MESSAGE_TYPE_ERROR, MESSAGE_TYPE_INF, MESSAGE_TYPE_WARNING, MESSAGE_TYPE_QUESTION

showConfirmDialog

public static int showConfirmDialog(java.awt.Component object,
                                    java.lang.Object message,
                                    java.lang.String title,
                                    int optionType,
                                    java.lang.String type)
Deprecated. 
Show Info message

Parameters:
object - the parent component
message - message
title - dialog title
optionType - the options to display in the pane: DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTION, OK_CANCEL_OPTION
type - the Icon image to display
Returns:
the option, which have been choosen

VLab Common 1.2

Copyright 2004 by VLAB Dominik Stoklosa.