Class JDPMessageDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----JDPDialog
                                           |
                                           +----JDPMessageDialog

public class JDPMessageDialog
extends JDPDialog
Class JDPMessageDialog represents a message dialog window.


Constructor Index

 o JDPMessageDialog(JDPUser, Container)
 o JDPMessageDialog(JDPUser, Container, String, String, String[])
 o JDPMessageDialog(JDPUser, Container, String, String, String[], int[])

Method Index

 o getButtonCount()
Get the button count for the dialog.
 o getButtonIcon(int)
Get the icon for the selected button.
 o getButtonText(int)
Get the text for the selected button.
 o getPressedButton()
Get the number of the button that was pressed.
 o handleEvent(Event)
 o setButtonCount(int)
Set the button count for the dialog.
 o setButtonIcon(int, int)
Set the icon for the selected button.
 o setButtonText(int, String)
Set the text for the selected button.
 o setMessage(String)
Set the message for the dialog.

Constructors

 o JDPMessageDialog
 public JDPMessageDialog(JDPUser user,
                         Container parent)
 o JDPMessageDialog
 public JDPMessageDialog(JDPUser user,
                         Container parent,
                         String title,
                         String message,
                         String buttons[])
 o JDPMessageDialog
 public JDPMessageDialog(JDPUser user,
                         Container parent,
                         String title,
                         String message,
                         String buttons[],
                         int icons[])

Methods

 o setMessage
 public void setMessage(String text)
Set the message for the dialog.

Parameters:
message - the message for the dialog.
 o setButtonCount
 public void setButtonCount(int count)
Set the button count for the dialog.

Parameters:
count - the button count for the dialog.
 o getButtonCount
 public int getButtonCount()
Get the button count for the dialog.

Returns:
the button count for the dialog.
 o setButtonText
 public void setButtonText(int button,
                           String text)
Set the text for the selected button.

Parameters:
button - the button to set the text.
text - the text for the selected button.
 o getButtonText
 public String getButtonText(int button)
Get the text for the selected button.

Parameters:
button - the button to set the text.
Returns:
the text for the selected button.
 o setButtonIcon
 public void setButtonIcon(int button,
                           int icon)
Set the icon for the selected button.

Parameters:
button - the button to set the icon.
icon - the icon for the selected button.
 o getButtonIcon
 public int getButtonIcon(int button)
Get the icon for the selected button.

Parameters:
button - the button to set the icon.
Returns:
the icon for the selected button.
 o getPressedButton
 public int getPressedButton()
Get the number of the button that was pressed. Returns -1 if dialog was closed.

Returns:
the number of the button that was pressed.
 o handleEvent
 public boolean handleEvent(Event e)
Overrides:
handleEvent in class JDPDialog