public class NullMessageOutput extends Object implements MessageOutput
An implementation of the MessageOutput
interface that does not output
a message.
This class provides an empty implementation of the show()
method.
Therefore messages are effectively suppressed. An instance of this class can
be used when a MessageOutput
object is required, but no message boxes
are to be displayed, e.g. because there is an alternative way of giving
feedback to the user.
BTN_OK, BTN_OK_CANCEL, BTN_YES_NO, BTN_YES_NO_CANCEL, MESSAGE_ERROR, MESSAGE_INFO, MESSAGE_PLAIN, MESSAGE_QUESTION, MESSAGE_WARNING, RET_CANCEL, RET_NO, RET_OK, RET_YES
Constructor and Description |
---|
NullMessageOutput() |
Modifier and Type | Method and Description |
---|---|
int |
show(Window parent,
Object message,
String title,
int messageType,
int buttonType)
Outputs the specified message.
|
public int show(Window parent, Object message, String title, int messageType, int buttonType)
RET_CANCEL
.show
in interface MessageOutput
parent
- the parent windowmessage
- specifies the messagetitle
- the title of the message boxmessageType
- a type for the messagebuttonType
- determines the buttons to be displayedCopyright © 2016 The JGUIraffe Team. All rights reserved.