|
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
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.HashMap ids,
java.util.HashMap names)
Accepts two HashMaps 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 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 |
get, set, size |
| Constructor Detail |
protected TraversableElement(java.lang.String name)
name - the tag name.| Method Detail |
public void getAll(java.util.HashMap ids,
java.util.HashMap names)
Either of the HashMaps may be null.
ids - a HashMap 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 HashMap that will be populated with all HTMLinput
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
name - the field name to locate.
FieldNotFoundException - if no matching fields were found.
public Input getFirstFieldByName(java.lang.String name)
throws FieldNotFoundException
name - 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
name - 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 c)
throws TagNotFoundException
c - the Class of Tag required.
TagNotFoundException - of no matching tags were found.
public Tag getFirstTagByID(java.lang.String id)
throws TagNotFoundException
id - the case-insensitive StyleSheet ID to locate.
TagNotFoundException - of no matching id was found.
public Tag getFirstTagByName(java.lang.String name)
throws TagNotFoundException
name - 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
name - 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
c - the Class of Tag required.
TagNotFoundException - of no matching tags were found.
public Tag[] getTagByID(java.lang.String id)
throws TagNotFoundException
id - the case-insensitive StyleSheet ID to locate.
TagNotFoundException - of no matching ids were found.
public Tag[] getTagByName(java.lang.String name)
throws TagNotFoundException
name - 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)
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
|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||