public final class MessageBox extends Info
UserChoice| Modifier and Type | Field and Description |
|---|---|
static int |
ICON_ERROR
An 'error' icon.
|
static int |
ICON_EXCLAMATION
An 'exclamation' icon.
|
static int |
ICON_INFORMATION
An 'information' icon.
|
static int |
ICON_QUESTION
A 'question' icon.
|
static int |
ICON_STOP
A 'stop' icon.
|
static int |
ICON_WARNING
A 'warning' icon.
|
static int |
RES_ABORT
Return value 'Abort'.
|
static int |
RES_CANCEL
Return value 'Cancel'.
|
static int |
RES_IGNORE
Return value 'Ignore'.
|
static int |
RES_NO
Return value 'No'.
|
static int |
RES_OK
Return value 'Ok'.
|
static int |
RES_RETRY
Return value 'Retry'.
|
static int |
RES_YES
Return value 'Yes'.
|
static int |
TYPE_ABORT_RETRY_IGNORE
'Abort-Retry-Ignore' message box.
|
static int |
TYPE_OK
'Ok' message box.
|
static int |
TYPE_OK_CANCEL
'Ok-Cancel' message box.
|
static int |
TYPE_RETRY_CANCEL
'Retry-Cancel' message box.
|
static int |
TYPE_YES_NO
'Yes-No' message box.
|
static int |
TYPE_YES_NO_CANCEL
'Yes-No-Cancel' message box.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
exec(java.lang.String text,
java.lang.String caption,
int icon,
int type)
Display a message box to the user.
|
java.lang.String |
getClassName()
Gets the command class name.
|
java.lang.String |
getName()
Gets the name of the command.
|
java.util.Enumeration |
getParams()
Gets the command parameters.
|
boolean |
initCommand() |
boolean |
isInternal()
Indicates if this is an internal SWATH command or not.
|
boolean |
isUserDefined()
Indicates if this command is user defined or not.
|
public static final int ICON_STOP
public static final int ICON_ERROR
public static final int ICON_QUESTION
public static final int ICON_EXCLAMATION
public static final int ICON_WARNING
public static final int ICON_INFORMATION
public static final int TYPE_OK
public static final int TYPE_OK_CANCEL
public static final int TYPE_YES_NO
public static final int TYPE_YES_NO_CANCEL
public static final int TYPE_RETRY_CANCEL
public static final int TYPE_ABORT_RETRY_IGNORE
public static final int RES_OK
public static final int RES_CANCEL
public static final int RES_ABORT
public static final int RES_RETRY
public static final int RES_IGNORE
public static final int RES_YES
public static final int RES_NO
public boolean isInternal()
CommandIfcisInternal in interface CommandIfctrue if internal, otherwise false.public boolean initCommand()
public static int exec(java.lang.String text,
java.lang.String caption,
int icon,
int type)
throws java.lang.Exception
text - The text to display in the message box.caption - The caption text of the message box or
null if the default script caption text should be used.icon - The icon to display in the message box.type - The type of message box to display.java.lang.ExceptionICON_STOP,
ICON_ERROR,
ICON_QUESTION,
ICON_EXCLAMATION,
ICON_WARNING,
ICON_INFORMATION,
TYPE_OK,
TYPE_OK_CANCEL,
TYPE_YES_NO,
TYPE_YES_NO_CANCEL,
TYPE_RETRY_CANCEL,
TYPE_ABORT_RETRY_IGNORE,
RES_OK,
RES_CANCEL,
RES_YES,
RES_NO,
RES_ABORT,
RES_RETRY,
RES_IGNOREpublic final boolean isUserDefined()
CommandIfcisUserDefined in interface CommandIfctrue if user defined, otherwise false.public final java.lang.String getName()
CommandIfcgetName in interface CommandIfcpublic final java.lang.String getClassName()
CommandIfcgetClassName in interface CommandIfcpublic final java.util.Enumeration getParams()
CommandIfcgetParams in interface CommandIfc