|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pajes.html.Tag
org.pajes.html.TraversableElement
org.pajes.html.Container
org.pajes.html.FormattedText
Formats a piece of text or HTML with the following content and/or physical style tags:
Span,
Text,
PlainText,
Serialized Form| Field Summary |
| Fields inherited from class org.pajes.html.Tag |
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT |
| Constructor Summary | |
FormattedText()
Creates a container that will wrap formatting tags around its content. |
|
FormattedText(HTML html)
Wraps formatting around another HTML object. |
|
FormattedText(java.lang.String valueToOutput)
Wraps formatting around a line of text. |
|
FormattedText(java.lang.String valueToOutput,
boolean encode)
Wraps formatting around a line of text. |
|
| Method Summary | |
java.lang.String |
getContainedText()
Returns the text that this object contains. |
FormattedText |
setBig(boolean big)
Determines if this text is to be increased one size larger than the surrounding text. |
FormattedText |
setBold(boolean bold)
Determines if this text is to be displayed in boldface. |
FormattedText |
setCitation(boolean cite)
Determines if this text is a bibliographic citation. |
FormattedText |
setCode(boolean code)
Determines if this text is computer source code or other formatted content. |
protected FormattedText |
setDefaults()
Allows sub-classes to define their default settings. |
FormattedText |
setDefiningInstance(boolean defn)
Determines if this text is the defining instance of a special term or phrase. |
FormattedText |
setEmphasized(boolean em)
Determines if this text is to be emphasised. |
FormattedText |
setItalic(boolean italic)
Determines if this text is to be displayed in italics. |
FormattedText |
setKeyboard(boolean kbd)
Determines if this text is to be indicated as text typed at a keyboard. |
FormattedText |
setSample(boolean samp)
Determines if this text is a small sequence of characters that are taken out of their normal context. |
FormattedText |
setSmall(boolean small)
Determines if this text is to be decreased one size smaller than the surrounding text. |
FormattedText |
setStrikeThrough(boolean strikeThrough)
Determines if this text is to be displayed with a line through it. |
FormattedText |
setStrong(boolean strong)
Determines if this text is to be heavily emphasized. |
FormattedText |
setSubscript(boolean sub)
Determines if this text is to be displayed as a subscript. |
FormattedText |
setSuperscript(boolean sup)
Determines if this text is to be displayed as a superscript. |
FormattedText |
setTeletype(boolean tt)
Determines if this text is to be displayed in a monospaced teletype font. |
FormattedText |
setUnderline(boolean underline)
Determines if this text is to be underlined. |
FormattedText |
setVariable(boolean var)
Determines if this text is a variable name or a user-field. |
void |
write(Browser browser)
Prints the formatted text to the browser. |
| Methods inherited from class org.pajes.html.Container |
add, add, add, add, addContent, clear, clone, delete, delete, destroy, get, getContent, getContents, getPosition, insert, replace, set, setContent, setContent, size, writeContent |
| Methods inherited from class org.pajes.html.TraversableElement |
dump, dump, getAll, getFieldByName, getFirstFieldByName, getFirstTagByAttribute, getFirstTagByClass, getFirstTagByID, getFirstTagByName, getTagByAttribute, getTagByClass, getTagByID, getTagByName, setWritable |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FormattedText()
public FormattedText(HTML html)
html - the HTML object to be formatted.public FormattedText(java.lang.String valueToOutput)
valueToOutput - the text to be formatted.
public FormattedText(java.lang.String valueToOutput,
boolean encode)
valueToOutput - the text to be formatted.encode - true if any special HTML characters in the text are to be
converted to their equivalent HTML named character entity, or
false if no changes are to be made to the text.| Method Detail |
public java.lang.String getContainedText()
getContainedText in interface TextContainerpublic FormattedText setBig(boolean big)
big - true if this text is to be increased one size larger than the
surrounding text.
public FormattedText setBold(boolean bold)
bold - true if this text is to be displayed in boldface.
public FormattedText setCitation(boolean cite)
cite - true if this text is a bibliographic citation.
public FormattedText setCode(boolean code)
code - true if this text is computer source code or other formatted
content.
public FormattedText setDefiningInstance(boolean defn)
defn - true if this text is the defining instance of a special term
or phrase.
public FormattedText setEmphasized(boolean em)
em - true if this text is to be emphasised.
public FormattedText setItalic(boolean italic)
italic - true if this text is to be displayed in italics.
public FormattedText setKeyboard(boolean kbd)
kbd - true if this text is to be indicated as text typed at a
keyboard.
public FormattedText setSample(boolean samp)
samp - true if this text is a small sequence of characters that are
taken out of their normal context.
public FormattedText setSmall(boolean small)
small - true if this text is to be decreased one size smaller than the
surrounding text.
public FormattedText setStrikeThrough(boolean strikeThrough)
strikeThrough - true if this text is to be displayed with a line through it.
public FormattedText setStrong(boolean strong)
strong - true if this text is to be heavily emphasized.
public FormattedText setSubscript(boolean sub)
sub - true if this text is to be displayed as a subscript.
public FormattedText setSuperscript(boolean sup)
sup - true if this text is to be displayed as a superscript.
public FormattedText setTeletype(boolean tt)
tt - true if this text is to be displayed in a monospaced teletype
font.
public FormattedText setUnderline(boolean underline)
underline - true if this text is to be underlined.
public FormattedText setVariable(boolean var)
var - true if this text is a variable name or a user-field.
public void write(Browser browser)
throws java.io.IOException
write in interface HTMLwrite in class Tagbrowser - the browser to which the results are to be output.
java.io.IOException - if an I/O error occurs writing to the browser.Tag.setWriteEndTag(boolean),
Tag.writeContent(org.pajes.servlet.Browser)protected FormattedText setDefaults()
|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||