com.retek.rmm.gui.widget
Class RmmConfirmDialog

java.lang.Object
  extended bycom.retek.rmm.gui.widget.RmmConfirmDialog

public class RmmConfirmDialog
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
RmmConfirmDialog(javax.swing.JFrame frame, java.lang.String title)
          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).
 int getSelection()
          Returns which button was selected from the dialog.
 void setEntityName(java.lang.String name)
          Assigns an entity name to display after the message.
 void setMessage(java.lang.String message)
          Assigns a message to the confirmation dialog.
 void setOkCancelType()
          Assigns the ok/cancel type to the dialog.
 void setYesNoCancelType()
          Assigns the Yes/No/Cancel type to the dialog.
 void setYesNoType()
          Assigns the yes/no type to the 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

RmmConfirmDialog

public RmmConfirmDialog(javax.swing.JFrame frame,
                        java.lang.String title)
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.
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.


setYesNoCancelType

public void setYesNoCancelType()
Assigns the Yes/No/Cancel type to the dialog.


setMessage

public void setMessage(java.lang.String message)
Assigns a message to the confirmation dialog. This message is translated.


setEntityName

public void setEntityName(java.lang.String name)
Assigns an entity name to display after the message.


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.

getSelection

public int getSelection()
Returns which button was selected from the dialog. This should ONLY be used in the case of Yes/No/Cancel option.

Returns:
The JOptionPane static value that indicates which button was selected.

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.


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