|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HTML
The HTML interface is implemented by all HTML objects.
| Method Summary | |
|---|---|
void |
addContent(java.lang.String content)
Adds content to this HTML tag. |
java.lang.Object |
clone()
Allows the Object to be cloned. |
void |
destroy()
Sets all the internal variables of this object to null, to assist in garbage collection. |
Container |
getContainer()
Deprecated. Use getParent() |
java.lang.String |
getDocument()
Gets the the unique name of the document containing this tag. |
java.lang.String |
getId()
Gets the unique ID of the HTML object. |
Traversable |
getParent()
Returns the last parent to which this HTML instance has been added. |
WritePermission |
getWritePermission()
Returns the object which will be used to determine whether this piece of HTML will be returned to the requesting browser. |
boolean |
isChildOf(HTML html)
Determines if the specified item is in the ancestry of this tag. |
boolean |
isChildOf(java.lang.String id)
Determines if the specified id is in the ancestry of this tag. |
void |
setContainer(Container container)
Deprecated. Use setParent(Traversable) |
void |
setContent(java.lang.String content)
Sets the content of this HTML tag, replacing all existing content. |
void |
setParent(Traversable parent)
Sets the container to which this HTML instance has been added. |
HTML |
setWritePermission(WritePermission control,
java.lang.String document,
java.lang.String id)
Sets the object which will be used to determine whether this piece of HTML will be returned to the requesting browser. |
void |
write(Browser browser)
Defines the method by which results are returned to the browser. |
| Method Detail |
|---|
void addContent(java.lang.String content)
content - the content to be added to this HTML tag.java.lang.Object clone()
This is required because servlets are usually only instantiated once, and if each request modifies an HTML object initialised at the servlet creation, the object will retain those changes and return them to the next request.
void destroy()
@Deprecated Container getContainer()
getParent()
java.lang.String getDocument()
java.lang.String getId()
Traversable getParent()
WritePermission getWritePermission()
boolean isChildOf(HTML html)
html - the parent item
boolean isChildOf(java.lang.String id)
id - the parent id.
@Deprecated void setContainer(Container container)
setParent(Traversable)
container - the container to which this HTML instance has been added.void setContent(java.lang.String content)
content - the content of this HTML tag.void setParent(Traversable parent)
parent - the parent HTML object to which this HTML instance has been
added.
HTML setWritePermission(WritePermission control,
java.lang.String document,
java.lang.String id)
control - the instance of the WritePermission interface which can be
used in the write() method to determine if this object should
be returned to the browser.document - the unique name of the page containing this tag.id - the unique ID of the tag.
void write(Browser browser)
throws java.io.IOException
browser - the browser to which the results are to be output.
java.io.IOException - if an error occurs writing the content to the browser.
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||