public class EMSText extends EMSElement
EMSText(String)
, a plain text EMSElement is created.
EMSTextFormat
argument,
a formated text fragment is created.
EMSMessage.add(EMSElement)
,
Serialized FormConstructor and Description |
---|
EMSText(java.lang.String text)
Construct a new EMS Text element.
|
EMSText(java.lang.String text,
EMSTextFormat style)
Construct a new EMS Text element.
|
Modifier and Type | Method and Description |
---|---|
EMSTextFormat |
getFormat()
Returns the style assigned to this text element or null if no style
is assigned.
|
java.lang.String |
getText()
Returns the text of this element.
|
java.lang.String |
toString() |
public EMSText(java.lang.String text)
text
- the textjava.lang.IllegalArgumentException
- if the text is null.public EMSText(java.lang.String text, EMSTextFormat style)
text
- The textstyle
- the text style to use for this element.java.lang.IllegalArgumentException
- if the text is null.public EMSTextFormat getFormat()
public java.lang.String getText()
public java.lang.String toString()
toString
in class java.lang.Object
object XP, Inc. © 2000-2013. All rights reserved object XP