|
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.Body
This class builds the BODY tag and all of the HTML objects that appear between the >body< and >/body< tags.
| Field Summary |
| Fields inherited from class org.pajes.html.Tag |
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT |
| Constructor Summary | |
|
Body()
Builds an empty HTML body with no parameters or attributes set. |
|
Body(Color bgColor,
Color textColor)
Builds an HTML document body. |
|
Body(Color bgColor,
Color textColor,
int topMargin,
int leftMargin)
Builds an HTML document body. |
|
Body(java.lang.String imageURL)
Builds an HTML document body. |
protected |
Body(java.lang.String name,
DocType docType)
Builds an empty HTML body instance. |
protected |
Body(java.lang.String name,
java.lang.String docType)
Deprecated. 2.3.8 Use Body(java.lang.String, org.pajes.html.DocType) constructor |
| Method Summary | |
Body |
addOnLoadHandler(java.lang.String onLoad)
Adds the JavaScript handler to any existing handler for this event. |
Body |
addOnUnLoadHandler(java.lang.String onUnLoad)
Adds the JavaScript handler to any existing handler for this event. |
DocType |
getDocType()
Returns the Document Type Declaration. |
java.lang.String |
getDocTypeHeader()
Returns the DOCTYPE declaration. |
java.lang.String |
getOnLoadHandler()
Gets the OnLoadHandler. |
java.lang.String |
getOnUnLoadHandler()
Gets the OnUnLoadHandler. |
Body |
setActiveHyperlinkColor(Color color)
Sets the colour of active hyper-links. |
Body |
setBackgroundImage(java.lang.String imageURL)
Sets the image to appear on the background of the document. |
Body |
setBGColor(Color color)
Sets the background colour of document. |
Body |
setHyperLinkColor(Color color)
Sets the colour of hyper-links that have not been visited yet and are not active. |
Body |
setMarginBottom(int margin)
Sets the number of pixels to offset the bottom margin of the document. |
Body |
setMarginHeight(int margin)
Sets the number of pixels to offset the top and bottom margins of the document. |
Body |
setMarginLeft(int margin)
Sets the number of pixels to offset the left margin of the document. |
Body |
setMarginRight(int margin)
Sets the number of pixels to offset the right margin of the document. |
Body |
setMarginTop(int margin)
Sets the number of pixels to offset the top margin of the document. |
Body |
setMarginWidth(int margin)
Sets the number of pixels to offset the right and left margins of the document. |
Body |
setOnLoadHandler(java.lang.String onLoad)
Sets the JavaScript handler for this event. |
Body |
setOnUnLoadHandler(java.lang.String onUnLoad)
Sets the JavaScript handler for this event. |
Body |
setTextColor(Color color)
Sets the colour of document text. |
Body |
setVisitedHyperLinkColor(Color color)
Sets the colour of visited hyper-links. |
| 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 Body()
public Body(Color bgColor,
Color textColor)
bgColor - sets the background color.textColor - sets the text color.
public Body(Color bgColor,
Color textColor,
int topMargin,
int leftMargin)
bgColor - sets the background color.textColor - sets the text color.topMargin - sets the number of pixels to leave. at the top of the
page before any items appear.leftMargin - sets the number of pixels to leave. at the left of the
page before any items appear.public Body(java.lang.String imageURL)
imageURL - sets the background image to be displayed on the page.
protected Body(java.lang.String name,
java.lang.String docType)
name - the tag name.docType - the DOCTYPE declaration.
java.lang.IllegalArgumentException - if the docType cannot be parsed.
protected Body(java.lang.String name,
DocType docType)
name - the tag name.docType - the XML DOCTYPE declaration.| Method Detail |
public Body setActiveHyperlinkColor(Color color)
color - the named color or hexadecimal RGB notation.
public Body setBGColor(Color color)
color - the named color or hexadecimal RGB notation
public Body setBackgroundImage(java.lang.String imageURL)
imageURL - the URL of the image.
public DocType getDocType()
Paje.
Paje.setDocType(org.pajes.html.DocType)public java.lang.String getDocTypeHeader()
Paje.
Paje.setDocType(org.pajes.html.DocType)public Body setHyperLinkColor(Color color)
color - the named color or hexadecimal RGB notation.
public Body setMarginBottom(int margin)
margin - number of pixels to offset the bottom margin.
public Body setMarginHeight(int margin)
margin - number of pixels to offset the margin.
public Body setMarginLeft(int margin)
margin - number of pixels to offset the left margin.
public Body setMarginRight(int margin)
margin - number of pixels to offset the right margin.
public Body setMarginTop(int margin)
margin - number of pixels to offset the top margin.
public Body setMarginWidth(int margin)
margin - number of pixels to offset the margin.
public Body setOnLoadHandler(java.lang.String onLoad)
onLoad - the JavaScript handler for this event.
public java.lang.String getOnLoadHandler()
public Body setOnUnLoadHandler(java.lang.String onUnLoad)
onUnLoad - the JavaScript handler for this event.
public java.lang.String getOnUnLoadHandler()
public Body setTextColor(Color color)
color - the named color or hexadecimal RGB notation
public Body setVisitedHyperLinkColor(Color color)
color - the named color or hexadecimal RGB notation.
public Body addOnLoadHandler(java.lang.String onLoad)
onLoad - the additional JavaScript handler for this event.
public Body addOnUnLoadHandler(java.lang.String onUnLoad)
onUnLoad - the additional JavaScript handler for this event.
|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||