com.retek.rcom.gui.widget
Class RConfirmDialog

java.lang.Object
  extended bycom.retek.rcom.gui.widget.RConfirmDialog

public class RConfirmDialog
extends java.lang.Object

Confirmation Dialog class that displays a confirmation message and returns true or false depending on the selection.

Retek Inc. Copyright (c) 2002


Constructor Summary
RConfirmDialog(javax.swing.JDialog dialog, java.lang.String title, java.lang.String message)
          Constructs and returns a new RConfirmDialog widget.
RConfirmDialog(javax.swing.JDialog dialog, java.lang.String title, java.lang.String message, java.lang.String value)
          Constructs and returns a new RConfirmDialog widget.
RConfirmDialog(javax.swing.JFrame frame, java.lang.String title, java.lang.String message)
          Constructs and returns a new RConfirmDialog widget.
RConfirmDialog(javax.swing.JFrame frame, java.lang.String title, java.lang.String message, java.lang.String value)
          Constructs and returns a new RConfirmDialog widget.
 
Method Summary
static boolean getClearConfirmation(javax.swing.JFrame frame)
          Creates and displays the clear confirmation OK/CANCEL dialog and returns the selected response.
 boolean getConfirmation()
          Returns whether or not the user confirmed (hit the "OK" button).
 void setOkCancelType()
          Assigns the OK/CANCEL type to the dialog.
 void setYesNoType()
          Assigns the YES/NO type to the dialog.
static void showMessage(javax.swing.JDialog dialog, java.lang.String title, java.lang.String message)
          Creates and displays a basic message dialog.
static void showMessage(javax.swing.JFrame frame, java.lang.String title, java.lang.String message)
          Creates and displays a basic message dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RConfirmDialog

public RConfirmDialog(javax.swing.JFrame frame,
                      java.lang.String title,
                      java.lang.String message)
Constructs and returns a new RConfirmDialog widget.

Parameters:
frame - The frame to place the confirm dialog on.
title - The title to place in the dialog window.
message - The message to display to the user.

RConfirmDialog

public RConfirmDialog(javax.swing.JDialog dialog,
                      java.lang.String title,
                      java.lang.String message)
Constructs and returns a new RConfirmDialog widget.

Parameters:
dialog - The dialog to place the confirm dialog on.
title - The title to place in the dialog window.
message - The message to display to the user.

RConfirmDialog

public RConfirmDialog(javax.swing.JFrame frame,
                      java.lang.String title,
                      java.lang.String message,
                      java.lang.String value)
Constructs and returns a new RConfirmDialog widget.

Parameters:
frame - The frame to place the confirm dialog on.
title - The title to place in the dialog window.
message - The message to display to the user.
value - The value to substitute in the message.

RConfirmDialog

public RConfirmDialog(javax.swing.JDialog dialog,
                      java.lang.String title,
                      java.lang.String message,
                      java.lang.String value)
Constructs and returns a new RConfirmDialog widget.

Parameters:
dialog - The dialog to place the confirm dialog on.
title - The title to place in the dialog window.
message - The message to display to the user.
value - The value to substitute in the message.
Method Detail

setOkCancelType

public void setOkCancelType()
Assigns the OK/CANCEL type to the dialog.


setYesNoType

public void setYesNoType()
Assigns the YES/NO type to the dialog.


getConfirmation

public boolean getConfirmation()
Returns whether or not the user confirmed (hit the "OK" button).

Returns:
True if the user confirmed the action, false if not.

getClearConfirmation

public static boolean getClearConfirmation(javax.swing.JFrame frame)
Creates and displays the clear confirmation OK/CANCEL dialog and returns the selected response.

Parameters:
frame - The frame that will own the dialog.
Returns:
True if OK was pressed, false if not.

showMessage

public static void showMessage(javax.swing.JFrame frame,
                               java.lang.String title,
                               java.lang.String message)
Creates and displays a basic message dialog.

Parameters:
frame - The frame that will own the dialog.
title - The title to display in the dialog.
message - The message to display in the dialog.

showMessage

public static void showMessage(javax.swing.JDialog dialog,
                               java.lang.String title,
                               java.lang.String message)
Creates and displays a basic message dialog.

Parameters:
dialog - The dialog that will own the dialog.
title - The title to display in the dialog.
message - The message to display in the dialog.


Copyright © 2005 Retek Inc. All Rights Reserved. - Generated at Fri, 01/21/2005 14:25