Class NullMessageOutput
- java.lang.Object
-
- net.sf.jguiraffe.gui.builder.utils.NullMessageOutput
-
- All Implemented Interfaces:
MessageOutput
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 aMessageOutput
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.- Version:
- $Id: NullMessageOutput.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Field Summary
-
Fields inherited from interface net.sf.jguiraffe.gui.builder.utils.MessageOutput
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 Summary
Constructors Constructor Description NullMessageOutput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
show(Window parent, Object message, String title, int messageType, int buttonType)
Outputs the specified message.
-
-
-
Method Detail
-
show
public int show(Window parent, Object message, String title, int messageType, int buttonType)
Outputs the specified message. This implementation does nothing; it simply ignores the message. It returns alwaysRET_CANCEL
.- Specified by:
show
in interfaceMessageOutput
- Parameters:
parent
- the parent windowmessage
- specifies the messagetitle
- the title of the message boxmessageType
- a type for the messagebuttonType
- determines the buttons to be displayed- Returns:
- a value indicating the button clicked by the user
-
-