|
PAJES 3.0.21 | ||||||||
| 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.SingleElementContainer
org.pajes.html.Heading
public class Heading
Places the heading tags around a piece of text or HTML.
| Field Summary |
|---|
| Fields inherited from class org.pajes.html.Tag |
|---|
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT |
| Constructor Summary | |
|---|---|
Heading(int level)
Creates a heading tag. |
|
Heading(int level,
HTML text)
Wraps heading tags around a line of pre-formatted HTML. |
|
Heading(int level,
HTML text,
java.lang.String alignment)
Wraps heading tags around a line of pre-formatted HTML. |
|
Heading(int level,
java.lang.String text)
Wraps heading tags around a line of pre-formatted HTML. |
|
Heading(int level,
java.lang.String text,
java.lang.String alignment)
Wraps heading tags around a line of pre-formatted HTML. |
|
| Method Summary | |
|---|---|
Heading |
setAlignment(java.lang.String alignment)
Sets the alignment of the heading. |
Heading |
setText(HTML text)
Sets the text of the heading. |
Heading |
setText(java.lang.String text)
Sets the text of the heading. |
| Methods inherited from class org.pajes.html.SingleElementContainer |
|---|
add, delete, get, set, 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 |
| Methods inherited from interface org.pajes.html.Traversable |
|---|
isWritable |
| Methods inherited from interface org.pajes.html.HTML |
|---|
addContent, clone, destroy, getContainer, getDocument, getId, getParent, getWritePermission, isChildOf, isChildOf, setContainer, setContent, setParent, setWritePermission, write |
| Constructor Detail |
|---|
public Heading(int level)
level - the heading level between 1 and 6.
TagException - if an invalid heading level number is specified.
public Heading(int level,
HTML text)
level - the heading level between 1 and 6.text - the text to display as a heading.
TagException - if an invalid heading level number is specified.
public Heading(int level,
HTML text,
java.lang.String alignment)
level - the heading level between 1 and 6.text - the text to display as a heading.alignment - the alignment of the heading (Left, Center or Right).
public Heading(int level,
java.lang.String text)
level - the heading level between 1 and 6.text - the text to display as a heading.
public Heading(int level,
java.lang.String text,
java.lang.String alignment)
level - the heading level between 1 and 6.text - the text to display as a heading.alignment - the alignment of the heading (Left, Center or Right).| Method Detail |
|---|
public Heading setAlignment(java.lang.String alignment)
alignment - Left, Center or Right
TagException - if an invalid alignment is specified.public Heading setText(HTML text)
text - the text to display as a heading.
public Heading setText(java.lang.String text)
text - the text to display as a heading.
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||