|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacCommand
PopupCommand
PopupMsg
A SNAC command used to pop up a message on the user's screen. I have never seen this command used and thus, the documentation for it is rather vague.
0x08
, command 0x02
Field Summary |
Fields inherited from class PopupCommand |
CMD_POPUP_MSG, FAMILY_INFO, FAMILY_POPUP |
Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
Constructor Summary | |
protected |
PopupMsg(SnacPacket packet)
Generates a popup message command from the given incoming SNAC packet. |
|
PopupMsg(java.lang.String message,
java.lang.String url,
int width,
int height,
int delay)
Creates a new outgoing popup message command with the given properties. |
Method Summary | |
int |
getDelay()
Returns some sort of delay before popping up the messsage. |
int |
getHeight()
Returns the height, in pixels, of the window to pop up. |
java.lang.String |
getMessage()
Returns the message to pop up, presumably in AOLRTF (HTML) format. |
java.lang.String |
getUrl()
Returns some sort of URL related to the popup message. |
int |
getWidth()
Returns the width, in pixels, of the window to pop up. |
java.lang.String |
toString()
|
void |
writeData(java.io.OutputStream out)
Writes this command's SNAC data block to the given stream. |
Methods inherited from class SnacCommand |
getCommand, getFamily, getFlag1, getFlag2 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected PopupMsg(SnacPacket packet)
packet
- an incoming popup message packetpublic PopupMsg(java.lang.String message, java.lang.String url, int width, int height, int delay)
message
- the message to pop up, presumably in AOLRTF (HTML) formaturl
- some sort of URL related to the messagewidth
- the width of the popup window, in pixelsheight
- the height of the popup window, in pixelsdelay
- some sort of delay before showing the windowMethod Detail |
public final java.lang.String getMessage()
public final java.lang.String getUrl()
public final int getWidth()
public final int getHeight()
public final int getDelay()
public void writeData(java.io.OutputStream out) throws java.io.IOException
SnacCommand
writeData
in class SnacCommand
out
- the stream to which to write the SNAC data
java.io.IOException
- if an I/O error occurspublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |