|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Traversable
This interface is implemented by all objects that contain other HTML objects.
| 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. |
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. |
boolean |
isWritable()
Determines whether this object should be displayed or not. |
Traversable |
set(HTML htmlObject,
int position)
Sets an HTML object at a specified position in the container. |
Traversable |
setWritable(boolean visible,
boolean cascade)
Determines if this object and its contents should be returned to the browser. |
int |
size()
Returns the number of HTML objects in the current container. |
| Methods inherited from interface org.pajes.html.HTML |
|---|
addContent, clone, destroy, getContainer, getDocument, getId, getParent, getWritePermission, isChildOf, isChildOf, setContainer, setContent, setParent, setWritePermission, write |
| Method Detail |
|---|
Traversable add(HTML htmlObject)
htmlObject - -
the Object to add (eg. doc.add(new htmlBody);)
TagException - if an attempt is made to add an invalid object to the
container.Traversable delete(java.lang.Object htmlObject)
htmlObject - the object to be deleted.
HTML get(int position)
position - the position to get the html object
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.
ids - 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.
Input[] getFieldByName(java.lang.String name)
throws FieldNotFoundException
name - the field name to locate.
FieldNotFoundException - if no matching fields were found.
Input getFirstFieldByName(java.lang.String name)
throws FieldNotFoundException
name - the field name to locate.
FieldNotFoundException - if no matching field was found.
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.
Tag getFirstTagByClass(java.lang.Class<? extends Tag> c)
throws TagNotFoundException
c - the Class of Tag required.
TagNotFoundException - of no matching tags were found.
Tag getFirstTagByID(java.lang.String id)
throws TagNotFoundException
id - the case-insensitive StyleSheet ID to locate.
TagNotFoundException - of no matching id was found.
Tag getFirstTagByName(java.lang.String name)
throws TagNotFoundException
name - the case-insensitive name of the tag.
TagNotFoundException - of no matching tags were found.
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.
Tag[] getTagByClass(java.lang.Class<?> c)
throws TagNotFoundException
c - the Class of Tag required.
TagNotFoundException - of no matching tags were found.
Tag[] getTagByID(java.lang.String id)
throws TagNotFoundException
id - the case-insensitive StyleSheet ID to locate.
TagNotFoundException - of no matching ids were found.
Tag[] getTagByName(java.lang.String name)
throws TagNotFoundException
name - the case-insensitive name of the tag.
TagNotFoundException - of no matching tags were found.boolean isWritable()
Traversable set(HTML htmlObject,
int position)
htmlObject - the Object to add.position - the position at which to place the html object.
Traversable setWritable(boolean visible,
boolean cascade)
visible - true if this element should be returned to the
browser, or false if it should not.cascade - true if any contained elements should be
returned to the browser, or false if they
should not. Note that this option does not affect any tags
that would not normally return their contents if they
themselves are not writable (e.g. Table tags).
Tag.setWritable(boolean)int size()
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||