|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.pluginsimpl.local.ui.AbstractUIMessage
public abstract class AbstractUIMessage
Field Summary | |
---|---|
protected int |
input_type
|
protected int |
message_type
|
protected java.lang.String[] |
messages
|
protected java.lang.String |
title
|
Fields inherited from interface org.gudy.azureus2.plugins.ui.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 | |
---|---|
AbstractUIMessage()
|
Method Summary | |
---|---|
int |
ask()
This displays the message to the user. |
protected java.lang.String |
messagesAsString()
|
void |
setInputType(int input_type)
Sets what type of input is allowed - use one of the INPUT_ constants defined here. |
void |
setLocalisedMessage(java.lang.String message)
Sets the main message to display the user. |
void |
setLocalisedMessages(java.lang.String[] messages)
Sets the main message to display the user. |
void |
setLocalisedTitle(java.lang.String title)
Sets the title for the message. |
void |
setMessage(java.lang.String message)
Sets the main message to display the user. |
void |
setMessages(java.lang.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(java.lang.String title)
Sets the title for the message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int message_type
protected int input_type
protected java.lang.String title
protected java.lang.String[] messages
Constructor Detail |
---|
public AbstractUIMessage()
Method Detail |
---|
public void setInputType(int input_type)
UIMessage
setInputType
in interface UIMessage
public void setMessageType(int msg_type)
UIMessage
setMessageType
in interface UIMessage
public void setLocalisedTitle(java.lang.String title)
UIMessage
setLocalisedTitle
in interface UIMessage
public void setLocalisedMessage(java.lang.String message)
UIMessage
UIMessage.setLocalisedMessages(java.lang.String[])
.
setLocalisedMessage
in interface UIMessage
public void setLocalisedMessages(java.lang.String[] messages)
UIMessage
The value passed here will be an array of strings - each string will be usually outputted on its own line.
setLocalisedMessages
in interface UIMessage
public void setMessage(java.lang.String message)
UIMessage
UIMessage.setMessages(java.lang.String[])
.
setMessage
in interface UIMessage
public void setTitle(java.lang.String title)
UIMessage
setTitle
in interface UIMessage
protected final java.lang.String messagesAsString()
public void setMessages(java.lang.String[] messages)
UIMessage
The value passed here will be an array of strings - each string will be usually outputted on its own line.
setMessages
in interface UIMessage
public int ask()
UIMessage
ask
in interface UIMessage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |