|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.widgets.DialogFactory
This is a modal dialog factory class for displaying error/confirmation messages
Field Summary | |
static int |
CANCEL_OPTION
|
static String |
cancelStr
|
static String |
errorStr
|
static int |
HELP_OPTION
|
static String |
helpStr
|
static String |
informStr
|
static int |
MAX
|
static int |
NO_OPTION
|
static String |
noStr
|
static String |
okStr
|
private static ResourceBundle |
resources
|
static String |
RESOURCES
|
static int |
YES_OPTION
|
static String |
yesStr
|
Constructor Summary | |
DialogFactory()
|
Method Summary | |
static String |
formatMessage(String msg,
int max)
Formats the string by placeing \n after max chars |
static void |
showErrorDialog(Component parent,
String msg)
Error Dialog |
static void |
showFormattedErrorDialog(Component parent,
String msg)
Error Dialog : this wraps around the string if it is longer than 80 chars |
static void |
showFormattedInformDialog(Component parent,
String msg)
|
static int |
showYesNoCancelDialog(Component parent,
String msg,
String title)
Yes/no/cancel dialog the Yes button has the default focus |
static int |
showYesNoDialog(Component parent,
String msg,
String title)
Shows an yes/no dialog the Yes button has the default focus |
static int |
showYesNoDialog(Component parent,
String msg,
String title,
int defaultOption)
Yes no dialog |
static int |
showYesNoHelpDialog(Component parent,
String msg,
String title)
Yes/no/help dialog the Yes button has the default focus |
static int |
showYesNoHelpDialog(Component parent,
String msg,
String title,
int defaultOption)
Yes/no/help dialog |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String okStr
public static String errorStr
public static String informStr
public static String yesStr
public static String noStr
public static String cancelStr
public static String helpStr
public static int YES_OPTION
public static int NO_OPTION
public static int CANCEL_OPTION
public static int HELP_OPTION
public static final int MAX
public static final String RESOURCES
private static ResourceBundle resources
Constructor Detail |
public DialogFactory()
Method Detail |
public static void showErrorDialog(Component parent, String msg)
parent
- componentmsg
- error messagepublic static void showFormattedErrorDialog(Component parent, String msg)
parent
- componentmsg
- the error message to be displayedpublic static int showYesNoDialog(Component parent, String msg, String title)
parent
- componentmsg
- the message stringtitle
- the titlepublic static int showYesNoDialog(Component parent, String msg, String title, int defaultOption)
parent
- componentmsg
- message stringtitle
- defaultOption
- default focus optionpublic static int showYesNoCancelDialog(Component parent, String msg, String title)
parent
- componentmsg
- the message stringtitle
- the titlepublic static int showYesNoHelpDialog(Component parent, String msg, String title)
parent
- componentmsg
- the message stringtitle
- the titlepublic static int showYesNoHelpDialog(Component parent, String msg, String title, int defaultOption)
parent
- componentmsg
- message stringtitle
- defaultOption
- default focus optionpublic static String formatMessage(String msg, int max)
msg
- stringmax
- the max chars after which the string is to be wrapped aroundpublic static void showFormattedInformDialog(Component parent, String msg)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |