ymsg.support
Class MessageElement

Object
  extended byMessageElement
All Implemented Interfaces:
Emoticons
Direct Known Subclasses:
MutableMessageElement

public class MessageElement
extends Object
implements Emoticons

This class represents an element in a decoded Yahoo message.

Since:
1.0

Field Summary
static int ALT
           
static int BOLD
           
static int COLOUR_ABS
           
static int COLOUR_INDEX
           
static int COLOUR_NAME
           
static int FADE
           
static int FONT
           
static int ITALIC
           
static int NULL
           
static int ROOT
           
static int TEXT
           
static int UNDERLINE
           
 
Fields inherited from interface Emoticons
ALIEN, ANGEL, ANGER, APPLAUSE, BEAT_UP, BLUSH, BRING_IT_ON, BROKEN_HEART, BUG, CHATTERBOX, CHICKEN, CLOWN, COFFEE, CONFUSED, COOL, COW, COWBOY, CRYING, DANCING, DEVILISH, DOH, DROOLING, EMOTICONS, EYEBROW, EYELASHES, FLAG, FRUSTRATED, GO_ON, GOOD_LUCK, GRIN, HUGS, HYPNOTIZED, IDEA, KISS, LAUGHING, LIAR_LIAR, LOSER, LOVE_STRUCK, MONEY_EYES, MONKEY, NAIL_BITING, NERD, NOT_TALKING, NOT_WORTHY, PARTY, PEACE, PHBBBBT, PIG, PRAYING, PUMPKIN, ROFL, ROLLING_EYES, ROSE, SAD, SHAME_ON_YOU, SHHH, SHOCK, SICK, SIGH, SILLY, SKULL, SLEEP, SMILE, SMUG, STAR, STRAIGHT_FACE, TALK_TO_HAND, TEE_HEE, THINKING, TIRED, TONGUE, WAITING, WHEW, WHISTLING, WINK, WORRIED
 
Constructor Summary
MessageElement()
           
 
Method Summary
 void appendToDocument(javax.swing.text.Document doc)
          Translates and appends this decoded message (from this node down) onto and existing Swing Document object.
 String toHTML()
          Translates this decoded message (from this node down) into HTML.
 String toString()
          Returns a string representation of this object.
 String toText()
          Translates this decoded message (from this node down) into plain text.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final int NULL
See Also:
Constant Field Values

ROOT

public static final int ROOT
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

BOLD

public static final int BOLD
See Also:
Constant Field Values

ITALIC

public static final int ITALIC
See Also:
Constant Field Values

COLOUR_INDEX

public static final int COLOUR_INDEX
See Also:
Constant Field Values

UNDERLINE

public static final int UNDERLINE
See Also:
Constant Field Values

FONT

public static final int FONT
See Also:
Constant Field Values

FADE

public static final int FADE
See Also:
Constant Field Values

ALT

public static final int ALT
See Also:
Constant Field Values

COLOUR_ABS

public static final int COLOUR_ABS
See Also:
Constant Field Values

COLOUR_NAME

public static final int COLOUR_NAME
See Also:
Constant Field Values
Constructor Detail

MessageElement

public MessageElement()
Method Detail

toHTML

public String toHTML()
Translates this decoded message (from this node down) into HTML.

Returns:
HTML fragment string
Since:
1.0

toText

public String toText()
Translates this decoded message (from this node down) into plain text.

Returns:
unstyle text
Since:
1.0

appendToDocument

public void appendToDocument(javax.swing.text.Document doc)
Translates and appends this decoded message (from this node down) onto and existing Swing Document object.

Parameters:
doc - the Swing Document to use
Since:
1.0

toString

public String toString()
Returns a string representation of this object.

Returns:
object as a string