| java.awt.Window java.awt.Dialog javax.swing.JDialog jacareto.cleverphl.gui.CleverPHLConfirmDialog
CleverPHLConfirmDialog | public class CleverPHLConfirmDialog extends JDialog implements ActionListener(Code) | | A Message Dialog with a line of text (the message) and two buttons, a "yes" and a "no" button.
This dialog is modal and not resizable. It is set to the middle of the screen.
After the dialog has been closed, the method
CleverPHLConfirmDialog.getValue() returns the value
YES or NO .
author: Christian Spannagel version: 0.9 |
Field Summary | |
final public static int | NO The value for the pressed NO button. | final public static int | YES The value for the pressed YES button. |
Constructor Summary | |
public | CleverPHLConfirmDialog(CleverPHL cleverPHL, Frame owner, String title, String message, String yesButtonText, String noButtonText) Creates a new confirm dialog with a specified title, owner frame, message, "yes"-button text
and "no"-button text. | public | CleverPHLConfirmDialog(CleverPHL cleverPHL, Dialog owner, String title, String message, String yesButtonText, String noButtonText) Creates a new confirm dialog with a specified title, owner dialog, message, "yes"-button
text and "no"-button text. |
NO | final public static int NO(Code) | | The value for the pressed NO button.
|
YES | final public static int YES(Code) | | The value for the pressed YES button.
|
CleverPHLConfirmDialog | public CleverPHLConfirmDialog(CleverPHL cleverPHL, Frame owner, String title, String message, String yesButtonText, String noButtonText)(Code) | | Creates a new confirm dialog with a specified title, owner frame, message, "yes"-button text
and "no"-button text. The dialog is set visible in this constructor.
Parameters: cleverPHL - the CleverPHL instance Parameters: owner - The frame which is the owner of this dialog Parameters: title - The title of the dialog Parameters: message - The message Parameters: yesButtonText - The text of the "yes"-button Parameters: noButtonText - The text of the "no"-button |
CleverPHLConfirmDialog | public CleverPHLConfirmDialog(CleverPHL cleverPHL, Dialog owner, String title, String message, String yesButtonText, String noButtonText)(Code) | | Creates a new confirm dialog with a specified title, owner dialog, message, "yes"-button
text and "no"-button text. The dialog is set visible in this constructor.
Parameters: cleverPHL - the CleverPHL instance Parameters: owner - The frame which is the owner of this dialog Parameters: title - The title of the frame Parameters: message - The message Parameters: yesButtonText - The text of the "yes"-button Parameters: noButtonText - The text of the "no"-button |
actionPerformed | public void actionPerformed(ActionEvent e)(Code) | | Invoked when the button was pressed.
Parameters: e - The action event |
getValue | public int getValue()(Code) | | Returns the value of the confirm dialog.
YES if the "yes"-button has been pressed, NO if the"no"-button has been pressed. |
setLocation | public void setLocation(Window owner)(Code) | | Sets the location of the message dialog relativ to the owners position
Parameters: owner - the owner |
Fields inherited from java.awt.Dialog | final public static ModalityType DEFAULT_MODALITY_TYPE(Code)(Java Doc)
|
|
|