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.
-
JDPMessageDialog(JDPUser, Container)
-
-
JDPMessageDialog(JDPUser, Container, String, String, String[])
-
-
JDPMessageDialog(JDPUser, Container, String, String, String[], int[])
-
-
getButtonCount()
- Get the button count for the dialog.
-
getButtonIcon(int)
- Get the icon for the selected button.
-
getButtonText(int)
- Get the text for the selected button.
-
getPressedButton()
- Get the number of the button that was pressed.
-
handleEvent(Event)
-
-
setButtonCount(int)
- Set the button count for the dialog.
-
setButtonIcon(int, int)
- Set the icon for the selected button.
-
setButtonText(int, String)
- Set the text for the selected button.
-
setMessage(String)
- Set the message for the dialog.
JDPMessageDialog
public JDPMessageDialog(JDPUser user,
Container parent)
JDPMessageDialog
public JDPMessageDialog(JDPUser user,
Container parent,
String title,
String message,
String buttons[])
JDPMessageDialog
public JDPMessageDialog(JDPUser user,
Container parent,
String title,
String message,
String buttons[],
int icons[])
setMessage
public void setMessage(String text)
- Set the message for the dialog.
- Parameters:
- message - the message for the dialog.
setButtonCount
public void setButtonCount(int count)
- Set the button count for the dialog.
- Parameters:
- count - the button count for the dialog.
getButtonCount
public int getButtonCount()
- Get the button count for the dialog.
- Returns:
- the button count for the dialog.
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.
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.
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.
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.
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.
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class JDPDialog