|
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
public abstract class SingleElementContainer
Creates a container that contains only one other element.
| Field Summary |
|---|
| Fields inherited from class org.pajes.html.Tag |
|---|
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT |
| Constructor Summary | |
|---|---|
protected |
SingleElementContainer(java.lang.String name)
Creates an empty container. |
| Method Summary | |
|---|---|
Traversable |
add(HTML htmlObject)
Adds an HTML object to the current container |
Traversable |
delete(java.lang.Object htmlObject)
Deletes the specified HTML object from the container. |
HTML |
get(int position)
Gets the HTML object from the specified position in the container. |
Traversable |
set(HTML htmlObject,
int position)
Sets an HTML object at a specified position in the container. |
int |
size()
Returns the number of HTML objects contained within this object. |
protected void |
writeContent(Browser browser)
Called by the Tag.write(org.pajes.servlet.Browser) method to write any content between the
start and end tags. |
| 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 |
|---|
protected SingleElementContainer(java.lang.String name)
name - the tag name.| Method Detail |
|---|
public Traversable add(HTML htmlObject)
Traversable
htmlObject - -
the Object to add (eg. doc.add(new htmlBody);)
Traversable.add(org.pajes.html.HTML)public Traversable delete(java.lang.Object htmlObject)
Traversable
htmlObject - the object to be deleted.
Traversable.delete(java.lang.Object)public HTML get(int position)
position - the position to get the html object
java.lang.ArrayIndexOutOfBoundsException - if the position is not 0 (an Heading can only contain 1 item)
or there is no content.
public Traversable set(HTML htmlObject,
int position)
throws java.lang.ArrayIndexOutOfBoundsException
htmlObject - the Object to add.position - the position at which to place the html object.
java.lang.ArrayIndexOutOfBoundsException - if the position is not 0 (can only contain 1 item).public int size()
protected void writeContent(Browser browser)
throws java.io.IOException
Tag.write(org.pajes.servlet.Browser) method to write any content between the
start and end tags.
writeContent 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)
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||