|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GeneralChatWindow
A chat window. Created with IRCUI.createGeneralChatWindow(leafchat.core.api.PluginContext, com.leafdigital.ircui.api.GeneralChatWindow.Handler, String, String, String, int, String, String, boolean)
.
Nested Class Summary | |
---|---|
static interface |
GeneralChatWindow.Handler
Callbacks from the window |
Method Summary | |
---|---|
void |
addLine(java.lang.String xml)
Adds a line of arbitrary XML text to the display (not logged). |
void |
addLine(java.lang.String xml,
java.lang.String logType)
Adds a line of arbitrary XML text to the display and to the system logs. |
MessageDisplay |
getMessageDisplay()
|
void |
setEnabled(boolean enabled)
Enables or disables the edit box in the window. |
void |
setTarget(java.lang.String target)
Sets this window's default target name. |
void |
setTitle(java.lang.String title)
Sets the window title. |
void |
showOwnText(int type,
java.lang.String target,
java.lang.String text)
Shows text from our user. |
void |
showRemoteText(int type,
java.lang.String nick,
java.lang.String text)
Shows text from another user in this window. |
Method Detail |
---|
void setEnabled(boolean enabled)
enabled
- True to enable, false to disablevoid addLine(java.lang.String xml)
xml
- XML format data; if intending plain text, remember to escape itvoid addLine(java.lang.String xml, java.lang.String logType)
xml
- XML format data; if intending plain text, remember to escape itlogType
- Log event type identifier.void showOwnText(int type, java.lang.String target, java.lang.String text)
type
- MessageDisplay.TYPE_xx constanttarget
- Target name (if this matches the window target name,
it'll show appropriately)text
- Text to displayvoid setTarget(java.lang.String target)
target
- Nickname of targetvoid showRemoteText(int type, java.lang.String nick, java.lang.String text)
type
- MessageDisplay.TYPE_xx constantnick
- Source nicknametext
- Text to displayvoid setTitle(java.lang.String title)
title
- New titleMessageDisplay getMessageDisplay()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |