Class AbstractUIMessage
java.lang.Object
com.biglybt.pifimpl.local.ui.AbstractUIMessage
- All Implemented Interfaces:
UIMessage
- Direct Known Subclasses:
UIMessageImpl
-
Field Summary
FieldsFields inherited from interface UIMessage
ANSWER_ABORT, ANSWER_CANCEL, ANSWER_IGNORE, ANSWER_NO, ANSWER_OK, ANSWER_RETRY, ANSWER_YES, INPUT_OK, INPUT_OK_CANCEL, INPUT_RETRY_CANCEL, INPUT_RETRY_CANCEL_IGNORE, INPUT_YES_NO, INPUT_YES_NO_CANCEL, MSG_ERROR, MSG_INFO, MSG_NONE, MSG_QUESTION, MSG_WARN, MSG_WORKING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintask()This displays the message to the user.private Stringprotected final StringvoidsetInputType(int input_type) Sets what type of input is allowed - use one of the INPUT_ constants defined here.voidsetLocalisedMessage(String message) Sets the main message to display the user.voidsetLocalisedMessages(String[] messages) Sets the main message to display the user.voidsetLocalisedTitle(String title) Sets the title for the message.voidsetMessage(String message) Sets the main message to display the user.voidsetMessages(String[] messages) Sets the main message to display the user.voidsetMessageType(int msg_type) Sets what type of message to display - use one of the MSG_ constants defined here.voidSets the title for the message.
-
Field Details
-
message_type
protected int message_type -
input_type
protected int input_type -
title
-
messages
-
-
Constructor Details
-
AbstractUIMessage
public AbstractUIMessage()
-
-
Method Details
-
setInputType
public void setInputType(int input_type) Description copied from interface:UIMessageSets what type of input is allowed - use one of the INPUT_ constants defined here.- Specified by:
setInputTypein interfaceUIMessage
-
setMessageType
public void setMessageType(int msg_type) Description copied from interface:UIMessageSets what type of message to display - use one of the MSG_ constants defined here.- Specified by:
setMessageTypein interfaceUIMessage
-
setLocalisedTitle
Description copied from interface:UIMessageSets the title for the message. For some interfaces, this means that a window will be presented, and the title of the window will be the value passed here.- Specified by:
setLocalisedTitlein interfaceUIMessage
-
setLocalisedMessage
Description copied from interface:UIMessageSets the main message to display the user. For multiple lines, seeUIMessage.setLocalisedMessages(String[]).- Specified by:
setLocalisedMessagein interfaceUIMessage
-
setLocalisedMessages
Description copied from interface:UIMessageSets the main message to display the user.The value passed here will be an array of strings - each string will be usually outputted on its own line.
- Specified by:
setLocalisedMessagesin interfaceUIMessage
-
setMessage
Description copied from interface:UIMessageSets the main message to display the user. For multiple lines, seeUIMessage.setMessages(String[]).- Specified by:
setMessagein interfaceUIMessage
-
setTitle
-
messagesAsString
-
setMessages
Description copied from interface:UIMessageSets the main message to display the user.The value passed here will be an array of strings - each string will be usually outputted on its own line.
- Specified by:
setMessagesin interfaceUIMessage
-
localise
-
ask
-