Constructor and Description |
---|
XHTMLText(String style,
String lang)
Creates a new XHTMLText with body tag params.
|
Modifier and Type | Method and Description |
---|---|
void |
append(String textToAppend)
Appends a given text to the XHTMLText.
|
void |
appendBrTag()
Appends a tag that inserts a single carriage return.
|
void |
appendCloseAnchorTag()
Appends a tag that indicates that an anchor section ends.
|
void |
appendCloseBlockQuoteTag()
Appends a tag that indicates that a blockquote section ends.
|
void |
appendCloseCodeTag()
Appends a tag that indicates end of text that is the code for a program.
|
void |
appendCloseEmTag()
Appends a tag that indicates end of emphasis.
|
void |
appendCloseHeaderTag(int level)
Appends a tag that indicates that a header section ends.
|
void |
appendCloseInlinedQuoteTag()
Appends a tag that indicates that an inlined quote section ends.
|
void |
appendCloseOrderedListTag()
Appends a tag that indicates that an ordered list section ends.
|
void |
appendCloseParagraphTag()
Appends a tag that indicates the end of a new paragraph.
|
void |
appendCloseSpanTag()
Appends a tag that indicates that a span section ends.
|
void |
appendCloseStrongTag()
Appends a tag that indicates that a strong section ends.
|
void |
appendCloseUnorderedListTag()
Appends a tag that indicates that an unordered list section ends.
|
void |
appendImageTag(String align,
String alt,
String height,
String src,
String width)
Appends a tag that indicates an image.
|
void |
appendLineItemTag(String style)
Appends a tag that indicates the start of a new line item within a list.
|
void |
appendOpenAnchorTag(String href,
String style)
Appends a tag that indicates that an anchor section begins.
|
void |
appendOpenBlockQuoteTag(String style)
Appends a tag that indicates that a blockquote section begins.
|
void |
appendOpenCiteTag()
Appends a tag that indicates a reference to work, such as a book, report or web site.
|
void |
appendOpenCodeTag()
Appends a tag that indicates text that is the code for a program.
|
void |
appendOpenEmTag()
Appends a tag that indicates emphasis.
|
void |
appendOpenHeaderTag(int level,
String style)
Appends a tag that indicates a header, a title of a section of the message.
|
void |
appendOpenInlinedQuoteTag(String style)
Appends a tag that indicates that an inlined quote section begins.
|
void |
appendOpenOrderedListTag(String style)
Appends a tag that creates an ordered list.
|
void |
appendOpenParagraphTag(String style)
Appends a tag that indicates the start of a new paragraph.
|
void |
appendOpenSpanTag(String style)
Appends a tag that allows to set the fonts for a span of text.
|
void |
appendOpenStrongTag()
Appends a tag that indicates text which should be more forceful than surrounding text.
|
void |
appendOpenUnorderedListTag(String style)
Appends a tag that creates an unordered list.
|
String |
toString()
Returns the text of the XHTMLText.
|
public void appendOpenAnchorTag(String href, String style)
href
- indicates the URL being linked tostyle
- the XHTML style of the anchorpublic void appendCloseAnchorTag()
public void appendOpenBlockQuoteTag(String style)
style
- the XHTML style of the blockquotepublic void appendCloseBlockQuoteTag()
public void appendBrTag()
public void appendOpenCiteTag()
public void appendOpenCodeTag()
public void appendCloseCodeTag()
public void appendOpenEmTag()
public void appendCloseEmTag()
public void appendOpenHeaderTag(int level, String style)
level
- the level of the Header. It should be a value between 1 and 3style
- the XHTML style of the blockquotepublic void appendCloseHeaderTag(int level)
level
- the level of the Header. It should be a value between 1 and 3public void appendImageTag(String align, String alt, String height, String src, String width)
align
- how text should flow around the picturealt
- the text to show if you don't show the pictureheight
- how tall is the picturesrc
- where to get the picturewidth
- how wide is the picturepublic void appendLineItemTag(String style)
style
- the style of the line itempublic void appendOpenOrderedListTag(String style)
style
- the style of the ordered listpublic void appendCloseOrderedListTag()
public void appendOpenUnorderedListTag(String style)
style
- the style of the unordered listpublic void appendCloseUnorderedListTag()
public void appendOpenParagraphTag(String style)
style
- the style of the paragraphpublic void appendCloseParagraphTag()
public void appendOpenInlinedQuoteTag(String style)
style
- the style of the inlined quotepublic void appendCloseInlinedQuoteTag()
public void appendOpenSpanTag(String style)
style
- the style for a span of textpublic void appendCloseSpanTag()
public void appendOpenStrongTag()
public void appendCloseStrongTag()
public void append(String textToAppend)
textToAppend
- the text to append