|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.objectxp.msg.ems.EMSElement
com.objectxp.msg.ems.EMSText
public class EMSText
This class represents a EMS Text fragment.
EMSText(String), a plain text EMSElement is created.
EMSTextFormat argument,
a formated text fragment is created.
EMSMessage.add(EMSElement),
Serialized Form| Constructor Summary | |
|---|---|
EMSText(java.lang.String text)
Construct a new EMS Text element. |
|
EMSText(java.lang.String text,
EMSTextFormat style)
Construct a new EMS Text element. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EMSText(java.lang.String text)
text - the text
java.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.| Method Detail |
|---|
public EMSTextFormat getFormat()
public java.lang.String getText()
public java.lang.String toString()
toString in class java.lang.Object
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||