|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RobotMessage
This class represents a msn chat message.
Field Summary | |
---|---|
static int |
STYLE_ALL
Font style - bold + italic + strikeout + underline |
static int |
STYLE_BOLD
Font style - bold |
static int |
STYLE_BOLD_ITALIC
Font style - bold + underline |
static int |
STYLE_ITALIC
Font style - italic |
static int |
STYLE_STRIKE
Font style - strikeout |
static int |
STYLE_UNDERLINE
Font style - underline |
Method Summary | |
---|---|
void |
deregisterEmoticon(java.lang.String shortcut)
Deregister the emoticon After the invocation of this function, the shortcut appearing in the message will show as plain text. |
int |
getFontColor()
Get font color of the message |
java.lang.String |
getFontName()
Get font name of the message |
int |
getFontStyle()
Get font style of the message, as bold, italic, strikeout, underline |
int |
getInt()
A util function to get integer content. |
java.lang.String |
getSignature()
Get robot message preface. |
java.lang.String |
getString()
Get the plain text of the message |
void |
registerEmoticon(java.lang.String shortcut,
java.lang.String filename)
Register custom emoticon |
RobotMessage |
setFontColor(int color)
Set font color of the message |
RobotMessage |
setFontName(java.lang.String name)
Set font name of the message |
RobotMessage |
setFontStyle(int style)
Set font style of the message, as bold, italic,strikeout, underline |
RobotMessage |
setInt(int content)
A util function to set the message text with integer content using setString(String.valueOf(content)) |
RobotMessage |
setSignature(java.lang.String sig)
Set robot message preface |
RobotMessage |
setString(java.lang.String content)
Set the plain text of the message |
Field Detail |
---|
static final int STYLE_BOLD
static final int STYLE_ITALIC
static final int STYLE_UNDERLINE
static final int STYLE_STRIKE
static final int STYLE_BOLD_ITALIC
static final int STYLE_ALL
Method Detail |
---|
java.lang.String getString()
RobotMessage setString(java.lang.String content)
int getInt() throws java.lang.NumberFormatException
Integer.parseInt(getString())
java.lang.NumberFormatException
RobotMessage setInt(int content)
setString(String.valueOf(content))
java.lang.String getSignature()
RobotMessage setSignature(java.lang.String sig)
java.lang.String getFontName()
RobotMessage setFontName(java.lang.String name)
int getFontStyle()
RobotMessage setFontStyle(int style)
int getFontColor()
RobotMessage setFontColor(int color)
void registerEmoticon(java.lang.String shortcut, java.lang.String filename)
shortcut
- The shortcut of the emoticon. If shortcut appears in message, it'll show as an icon corresponding to your 'filename'.filename
- The filename of emotion. Submitted to INCE by SP, and a certified file of INCEvoid deregisterEmoticon(java.lang.String shortcut)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |