|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blackboard.base.FormattedText
public class FormattedText
The FormattedText
class provides a means for storing a piece of
text along with a companion formatting specification. FormattedText
objects encapsulate Smart Text, Plain Text, and HTML Text as used
in the user interface.
Nested Class Summary | |
---|---|
static class |
FormattedText.Type
Enumeration class to specify possible text formats. |
Constructor Summary | |
---|---|
FormattedText()
Default constructor; creates an empty string with FormattedText.Type.SMART . |
|
FormattedText(java.lang.String strText,
FormattedText.Type eType)
Constructor, presets the string value and type. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Overrides the equals() method in
Object to provide a simple way to compare two FormattedText
objects. |
java.lang.String |
getText()
Returns the text associated with this FormattedText . |
FormattedText.Type |
getType()
Returns the format type for this FormattedText . |
java.lang.String |
toString()
Returns the contents of this BbFile object as a single line
separated list of name value pairs of this object's properties. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FormattedText()
FormattedText.Type.SMART
.
public FormattedText(java.lang.String strText, FormattedText.Type eType)
Method Detail |
---|
public FormattedText.Type getType()
FormattedText
.
FormattedText.Type
FormattedText.Type
public java.lang.String getText()
FormattedText
.
FormattedText
as a String
public boolean equals(java.lang.Object obj)
equals()
method in
Object to provide a simple way to compare two FormattedText
objects.
equals
in class java.lang.Object
obj
- the object to be compared.
public java.lang.String toString()
BbFile
object as a single line
separated list of name value pairs of this object's properties. This
method can be used for debug purposes.
toString
in class java.lang.Object
String
that represents the contents of this object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |