|
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
public abstract class TraversableElement
This abstract class is extended by all objects that contain other HTML objects.
| Field Summary |
|---|
| Fields inherited from class org.pajes.html.Tag |
|---|
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT |
| Constructor Summary | |
|---|---|
protected |
TraversableElement(java.lang.String name)
Creates a new TraversableElement object. |
| Method Summary | |
|---|---|
java.lang.String |
dump()
Dumps this TraversableElement and all the elements it contains to the specified Writer. |
void |
dump(java.io.Writer writer)
Dumps this TraversableElement and all the elements it contains to the specified Writer. |
void |
getAll(java.util.Map<java.lang.String,Tag[]> ids,
java.util.Map<java.lang.String,Input[]> names)
Accepts two Maps as parameters, and returns them populated with all objects within this container that have ID and NAME attributes. |
Input[] |
getFieldByName(java.lang.String name)
Locates Input instances in this container or any containers it contains, using the case-insensitive field name. |
Input |
getFirstFieldByName(java.lang.String name)
Locates the first Input instance in this container or any containers it contains, using the case-insensitive field name. |
Tag |
getFirstTagByAttribute(java.lang.String name,
java.lang.String value)
Locates the first Tag instance in this container or any containers it contains that has the specified attribute name with the specified value. |
Tag |
getFirstTagByClass(java.lang.Class<? extends Tag> c)
Locates the first Tag instance in this container or any containers it contains, that is an instance of the specified Class. |
Tag |
getFirstTagByID(java.lang.String id)
Locates the first Tag instance in this container or any containers it contains, using the style sheet id, which is common to all HTML tags. |
Tag |
getFirstTagByName(java.lang.String name)
Locates the first Tag instance in this container or any containers it contains, using the tag name (e.g. |
Tag[] |
getTagByAttribute(java.lang.String name,
java.lang.String value)
Locates Tag instances in this container or any containers it contains that have the specified attribute name and value. |
Tag[] |
getTagByClass(java.lang.Class<?> c)
Locates Tag instances in this container or any containers it contains, that are an instance of the specified Class. |
Tag[] |
getTagByID(java.lang.String id)
Locates Tag instances in this container or any containers it contains, using the style sheet id, which is common to all HTML tags. |
Tag[] |
getTagByName(java.lang.String name)
Locates Tag instances in this container or any containers it contains, using the tag name (e.g. |
Traversable |
setWritable(boolean visible,
boolean cascade)
Determines if this object and its contents should be returned to the browser. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.pajes.html.Traversable |
|---|
add, delete, get, isWritable, set, size |
| 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 TraversableElement(java.lang.String name)
name - the tag name.| Method Detail |
|---|
public java.lang.String dump()
throws java.io.IOException
java.io.IOException - if an IO exception occurs
public void dump(java.io.Writer writer)
throws java.io.IOException
writer - the Writer to which the elements will be dumped.
java.io.IOException - if an IO exception occurs
public void getAll(java.util.Map<java.lang.String,Tag[]> ids,
java.util.Map<java.lang.String,Input[]> names)
Either of the Maps may be null.
getAll in interface Traversableids - a Map that will be populated with all Tag instances where
HTML.getId() returns a non-null value. The key in the
HashMap is the String ID, and the value is an
array of Tag instances.names - a Map that will be populated with all Input instances where
Input.getName() returns a non-null value. The key in the
HashMap is the String NAME, and the value is an
array of Input instances.
public Input[] getFieldByName(java.lang.String name)
throws FieldNotFoundException
getFieldByName in interface Traversablename - the field name to locate.
FieldNotFoundException - if no matching fields were found.
public Input getFirstFieldByName(java.lang.String name)
throws FieldNotFoundException
getFirstFieldByName in interface Traversablename - the field name to locate.
FieldNotFoundException - if no matching field was found.
public Tag getFirstTagByAttribute(java.lang.String name,
java.lang.String value)
throws TagNotFoundException
getFirstTagByAttribute in interface Traversablename - the case-insensitive name of the attribute.value - the case-insensitive value of the attribute.
TagNotFoundException - of no matching tags were found.
public Tag getFirstTagByClass(java.lang.Class<? extends Tag> c)
throws TagNotFoundException
getFirstTagByClass in interface Traversablec - the Class of Tag required.
TagNotFoundException - of no matching tags were found.
public Tag getFirstTagByID(java.lang.String id)
throws TagNotFoundException
getFirstTagByID in interface Traversableid - the case-insensitive StyleSheet ID to locate.
TagNotFoundException - of no matching id was found.
public Tag getFirstTagByName(java.lang.String name)
throws TagNotFoundException
getFirstTagByName in interface Traversablename - the case-insensitive name of the tag.
TagNotFoundException - of no matching tags were found.
public Tag[] getTagByAttribute(java.lang.String name,
java.lang.String value)
throws TagNotFoundException
getTagByAttribute in interface Traversablename - the case-insensitive name of the attribute.value - the case-insensitive value of the attribute.
TagNotFoundException - of no matching tags were found.
public Tag[] getTagByClass(java.lang.Class<?> c)
throws TagNotFoundException
getTagByClass in interface Traversablec - the Class of Tag required.
TagNotFoundException - of no matching tags were found.
public Tag[] getTagByID(java.lang.String id)
throws TagNotFoundException
getTagByID in interface Traversableid - the case-insensitive StyleSheet ID to locate.
TagNotFoundException - of no matching ids were found.
public Tag[] getTagByName(java.lang.String name)
throws TagNotFoundException
getTagByName in interface Traversablename - the case-insensitive name of the tag.
TagNotFoundException - of no matching tags were found.
public Traversable setWritable(boolean visible,
boolean cascade)
setWritable in interface Traversablevisible - true if this element should be returned to the
browser, or false if it should not.cascade - true if the specified visible
value should be cascaded to all contained elements.
Tag.setWritable(boolean)
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||