|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UIMessage
This interface provides a mechanism to display a message to the user, potentially to ask the user a question.
There are four main elements to set:
There are various methods which have a setXXX and setLocalisedXXX counterparts. The setXXX methods will attempt to translate the given string to a localised representation of it - the setLocalisedXXX method will assume that the localisation has already been done, and leave it intact.
Note: Only for implementation by Azureus, not plugins.
Field Summary | |
---|---|
static int |
ANSWER_ABORT
|
static int |
ANSWER_CANCEL
|
static int |
ANSWER_IGNORE
|
static int |
ANSWER_NO
|
static int |
ANSWER_OK
|
static int |
ANSWER_RETRY
|
static int |
ANSWER_YES
|
static int |
INPUT_OK
|
static int |
INPUT_OK_CANCEL
|
static int |
INPUT_RETRY_CANCEL
|
static int |
INPUT_RETRY_CANCEL_IGNORE
|
static int |
INPUT_YES_NO
|
static int |
INPUT_YES_NO_CANCEL
|
static int |
MSG_ERROR
|
static int |
MSG_INFO
|
static int |
MSG_NONE
|
static int |
MSG_QUESTION
|
static int |
MSG_WARN
|
static int |
MSG_WORKING
|
Method Summary | |
---|---|
int |
ask()
This displays the message to the user. |
void |
setInputType(int input_type)
Sets what type of input is allowed - use one of the INPUT_ constants defined here. |
void |
setLocalisedMessage(String message)
Sets the main message to display the user. |
void |
setLocalisedMessages(String[] messages)
Sets the main message to display the user. |
void |
setLocalisedTitle(String title)
Sets the title for the message. |
void |
setMessage(String message)
Sets the main message to display the user. |
void |
setMessages(String[] messages)
Sets the main message to display the user. |
void |
setMessageType(int msg_type)
Sets what type of message to display - use one of the MSG_ constants defined here. |
void |
setTitle(String title)
Sets the title for the message. |
Field Detail |
---|
static final int MSG_NONE
static final int MSG_ERROR
static final int MSG_INFO
static final int MSG_WARN
static final int MSG_QUESTION
static final int MSG_WORKING
static final int INPUT_OK
static final int INPUT_OK_CANCEL
static final int INPUT_YES_NO
static final int INPUT_YES_NO_CANCEL
static final int INPUT_RETRY_CANCEL
static final int INPUT_RETRY_CANCEL_IGNORE
static final int ANSWER_OK
static final int ANSWER_CANCEL
static final int ANSWER_YES
static final int ANSWER_NO
static final int ANSWER_RETRY
static final int ANSWER_IGNORE
static final int ANSWER_ABORT
Method Detail |
---|
void setMessageType(int msg_type)
void setInputType(int input_type)
void setTitle(String title)
void setLocalisedTitle(String title)
void setMessage(String message)
setMessages(java.lang.String[])
.
void setLocalisedMessage(String message)
setLocalisedMessages(java.lang.String[])
.
void setMessages(String[] messages)
The value passed here will be an array of strings - each string will be usually outputted on its own line.
void setLocalisedMessages(String[] messages)
The value passed here will be an array of strings - each string will be usually outputted on its own line.
int ask()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |