Modifier and Type | Field and Description |
---|---|
static String |
A |
static String |
BLOCKQUOTE |
static String |
BR |
static String |
CITE |
static String |
CODE |
static String |
EM |
static String |
H |
static String |
HREF |
static String |
IMG |
static String |
LI |
static String |
NAMESPACE |
static String |
OL |
static String |
P |
static String |
Q |
static String |
SPAN |
static String |
STRONG |
static String |
STYLE |
static String |
UL |
Constructor and Description |
---|
XHTMLText(String style,
String lang)
Creates a new XHTMLText with body tag params.
|
Modifier and Type | Method and Description |
---|---|
XHTMLText |
append(String textToAppend)
Appends a given text to the XHTMLText.
|
XHTMLText |
appendBrTag()
Appends a tag that inserts a single carriage return.
|
XHTMLText |
appendCloseAnchorTag()
Appends a tag that indicates that an anchor section ends.
|
XHTMLText |
appendCloseBlockQuoteTag()
Appends a tag that indicates that a blockquote section ends.
|
XHTMLText |
appendCloseBodyTag()
Appends a tag that indicates that the body section ends.
|
XHTMLText |
appendCloseCodeTag()
Appends a tag that indicates end of text that is the code for a program.
|
XHTMLText |
appendCloseEmTag()
Appends a tag that indicates end of emphasis.
|
XHTMLText |
appendCloseHeaderTag(int level)
Appends a tag that indicates that a header section ends.
|
XHTMLText |
appendCloseInlinedQuoteTag()
Appends a tag that indicates that an inlined quote section ends.
|
XHTMLText |
appendCloseLineItemTag()
Appends a tag that indicates that a line item section ends.
|
XHTMLText |
appendCloseOrderedListTag()
Appends a tag that indicates that an ordered list section ends.
|
XHTMLText |
appendCloseParagraphTag()
Appends a tag that indicates the end of a new paragraph.
|
XHTMLText |
appendCloseSpanTag()
Appends a tag that indicates that a span section ends.
|
XHTMLText |
appendCloseStrongTag()
Appends a tag that indicates that a strong section ends.
|
XHTMLText |
appendCloseUnorderedListTag()
Appends a tag that indicates that an unordered list section ends.
|
XHTMLText |
appendImageTag(String align,
String alt,
String height,
String src,
String width)
Appends a tag that indicates an image.
|
XHTMLText |
appendLineItemTag(String style)
Appends a tag that indicates the start of a new line item within a list.
|
XHTMLText |
appendOpenAnchorTag(String href,
String style)
Appends a tag that indicates that an anchor section begins.
|
XHTMLText |
appendOpenBlockQuoteTag(String style)
Appends a tag that indicates that a blockquote section begins.
|
XHTMLText |
appendOpenCiteTag()
Appends a tag that indicates a reference to work, such as a book, report or web site.
|
XHTMLText |
appendOpenCodeTag()
Appends a tag that indicates text that is the code for a program.
|
XHTMLText |
appendOpenEmTag()
Appends a tag that indicates emphasis.
|
XHTMLText |
appendOpenHeaderTag(int level,
String style)
Appends a tag that indicates a header, a title of a section of the message.
|
XHTMLText |
appendOpenInlinedQuoteTag(String style)
Appends a tag that indicates that an inlined quote section begins.
|
XHTMLText |
appendOpenOrderedListTag(String style)
Appends a tag that creates an ordered list.
|
XHTMLText |
appendOpenParagraphTag(String style)
Appends a tag that indicates the start of a new paragraph.
|
XHTMLText |
appendOpenSpanTag(String style)
Appends a tag that allows to set the fonts for a span of text.
|
XHTMLText |
appendOpenStrongTag()
Appends a tag that indicates text which should be more forceful than surrounding text.
|
XHTMLText |
appendOpenUnorderedListTag(String style)
Appends a tag that creates an unordered list.
|
String |
toString()
Returns the text of the XHTMLText.
|
XmlStringBuilder |
toXML() |
public static final String NAMESPACE
public static final String A
public static final String HREF
public static final String STYLE
public static final String BLOCKQUOTE
public static final String BR
public static final String CITE
public static final String CODE
public static final String EM
public static final String H
public static final String IMG
public static final String LI
public static final String OL
public static final String UL
public static final String P
public static final String Q
public static final String SPAN
public static final String STRONG
public XHTMLText appendOpenAnchorTag(String href, String style)
href
- indicates the URL being linked tostyle
- the XHTML style of the anchorpublic XHTMLText appendCloseAnchorTag()
public XHTMLText appendOpenBlockQuoteTag(String style)
style
- the XHTML style of the blockquotepublic XHTMLText appendCloseBlockQuoteTag()
public XHTMLText appendCloseBodyTag()
public XHTMLText appendBrTag()
public XHTMLText appendOpenCiteTag()
public XHTMLText appendOpenCodeTag()
public XHTMLText appendCloseCodeTag()
public XHTMLText appendOpenEmTag()
public XHTMLText appendCloseEmTag()
public XHTMLText appendOpenHeaderTag(int level, String style)
level
- the level of the Header. It must be a value between 1 and 3style
- the XHTML style of the blockquotepublic XHTMLText appendCloseHeaderTag(int level)
level
- the level of the Header. It must be a value between 1 and 3public XHTMLText 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 XHTMLText appendLineItemTag(String style)
style
- the style of the line itempublic XHTMLText appendCloseLineItemTag()
public XHTMLText appendOpenOrderedListTag(String style)
style
- the style of the ordered listpublic XHTMLText appendCloseOrderedListTag()
public XHTMLText appendOpenUnorderedListTag(String style)
style
- the style of the unordered listpublic XHTMLText appendCloseUnorderedListTag()
public XHTMLText appendOpenParagraphTag(String style)
style
- the style of the paragraphpublic XHTMLText appendCloseParagraphTag()
public XHTMLText appendOpenInlinedQuoteTag(String style)
style
- the style of the inlined quotepublic XHTMLText appendCloseInlinedQuoteTag()
public XHTMLText appendOpenSpanTag(String style)
style
- the style for a span of textpublic XHTMLText appendCloseSpanTag()
public XHTMLText appendOpenStrongTag()
public XHTMLText appendCloseStrongTag()
public XHTMLText append(String textToAppend)
textToAppend
- the text to appendpublic XmlStringBuilder toXML()