|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.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 |
getFormattedText()
Renders the formatted text object. |
java.lang.String |
getText()
Returns the text associated with this FormattedText. |
FormattedText.Type |
getType()
Returns the format type for this FormattedText. |
int |
hashCode()
|
static FormattedText |
toFormattedText(java.lang.String text)
Creates a FormattedText from the specified String using the
default FormattedText type. |
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, 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.TypeFormattedText.Typepublic java.lang.String getText()
FormattedText.
FormattedText as a Stringpublic java.lang.String getFormattedText()
public static FormattedText toFormattedText(java.lang.String text)
FormattedText from the specified String using the
default FormattedText type.
text - String to convert to FormattedText
FormattedText of the specified Stringpublic 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.Objectobj - the object to be compared.
public int hashCode()
hashCode in class java.lang.Objectpublic 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.ObjectString that represents the contents of this object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||