|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.japano.PageNode
public class PageNode
Base class for all nodes in a page model.
Nested Class Summary | |
---|---|
static class |
PageNode.Output
Helper class for tag output definitions. |
Field Summary | |
---|---|
protected java.lang.Object[] |
children
Contains all child nodes of this node |
protected AbstractContext |
context
|
protected static java.lang.Object[] |
EMPTY
empty Object array |
protected java.lang.String |
nodeId
|
protected PageNode |
parent
Parent node of this node |
Constructor Summary | |
---|---|
PageNode()
Constructs a new Node with no children. |
Method Summary | |
---|---|
java.util.List |
findChildren(java.lang.Class type)
Returns a List of all children with a given type. |
PageNode |
findParent(java.lang.Class klass)
Finds the first parent of the given type. |
PageNode |
findRootNode()
Returns the root node the current node is a descendant of. |
void |
generate(Buffer out)
Generates this node The base implementation just calls generateChildren(Buffer) |
protected void |
generateChildren(Buffer out)
Dumps all child nodes of this node. |
java.lang.Object[] |
getChildren()
Returns the children of this node |
AbstractContext |
getContext()
|
java.lang.String |
getNodeId()
Returns the unique identifier value for this page node. |
PageNode |
getParent()
Returns the parent of this node. |
void |
init()
Initializes the node. |
void |
recInit()
Recursively initializes all children of the current Node. |
void |
release()
Always called at the end of a page invocation. |
PageNode |
setChildren(java.lang.Object[] _children)
Sets the children of this node. |
void |
setContext(AbstractContext context)
|
void |
setNodeId(java.lang.String nodeId)
Sets the unique identifier value for this page node. |
void |
setParent(PageNode parent)
Sets the parent of this node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.Object[] EMPTY
protected java.lang.Object[] children
protected PageNode parent
protected AbstractContext context
protected java.lang.String nodeId
Constructor Detail |
---|
public PageNode()
Method Detail |
---|
public void setContext(AbstractContext context)
public AbstractContext getContext()
public void setParent(PageNode parent)
parent
- Parent nodepublic PageNode getParent()
public PageNode setChildren(java.lang.Object[] _children)
_children
- new children
public java.lang.Object[] getChildren()
public void generate(Buffer out)
generateChildren(Buffer)
protected void generateChildren(Buffer out)
public PageNode findParent(java.lang.Class klass)
klass
- type to find
public java.util.List findChildren(java.lang.Class type)
type
- type
public final void recInit()
public void init()
public void setNodeId(java.lang.String nodeId)
public java.lang.String getNodeId()
public PageNode findRootNode()
public void release()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |