|
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.tree.TreePaje.Node
public class TreePaje.Node
Inner class representing a node of the tree.
| Constructor Summary | |
|---|---|
TreePaje.Node(java.lang.String name,
java.lang.String description,
java.lang.String url,
boolean isOpen)
Creates a new tree node. |
|
| Method Summary | |
|---|---|
TreePaje.Node |
addChild(TreePaje.Node child)
Adds an node to appear on the level below this node. |
TreePaje.Node |
addSibling(TreePaje.Node sibling)
Adds an node to appear on the same level as this node. |
TreePaje.Node |
getChild()
Gets the first child of this node. |
java.lang.String |
getDescription()
Gets the description of this tree node. |
java.lang.String |
getName()
Gets the JavaScript name of this node. |
TreePaje.Node |
getParent()
Gets the parent node of this node. |
TreePaje.Node |
getSibling()
Gets the sibling of this node. |
java.lang.String |
getURL()
Gets the destination URL when this node is selected. |
boolean |
isHighlighted()
Gets the highlight state of this tree node. |
boolean |
isOpen()
Gets the initial state of this tree node. |
TreePaje.Node |
setDescription(java.lang.String description)
Sets the description of this tree node. |
TreePaje.Node |
setHighlighted(boolean highlight)
Sets whether this node is to be highlighted. |
TreePaje.Node |
setInitialState(boolean isOpen)
Sets the initial state of this tree node. |
TreePaje.Node |
setParent(TreePaje.Node parent)
Sets the parent node of this node. |
TreePaje.Node |
setProperty(java.lang.String name,
java.lang.String value)
Sets an arbitrary property on this node. |
TreePaje.Node |
setURL(java.lang.String url)
Sets the destination URL when this node is selected. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreePaje.Node(java.lang.String name,
java.lang.String description,
java.lang.String url,
boolean isOpen)
name - the JavaScript name of this node. This must be unique
within the tree.description - the description to appear on the tree.url - the destination URL when this node is selected. If null,
selecting the node will have no effect.isOpen - true if the initial state of this node is open (i.e. any
child elements are automatically displayed).
TreeException - if a node with this name already exists in the tree.| Method Detail |
|---|
public TreePaje.Node addChild(TreePaje.Node child)
child - the child tree node.
public TreePaje.Node addSibling(TreePaje.Node sibling)
sibling - the sibling tree node.
public TreePaje.Node getChild()
public java.lang.String getDescription()
public java.lang.String getName()
public TreePaje.Node getParent()
public TreePaje.Node getSibling()
public java.lang.String getURL()
public boolean isHighlighted()
public boolean isOpen()
public TreePaje.Node setDescription(java.lang.String description)
description - the description to appear on the tree.
public TreePaje.Node setHighlighted(boolean highlight)
highlight - true if text of this node is to be highlighted.
public TreePaje.Node setInitialState(boolean isOpen)
isOpen - true if the initial state of this node is open (i.e. any
child elements are automatically displayed).
public TreePaje.Node setParent(TreePaje.Node parent)
parent - the parent node of this node.
public TreePaje.Node setProperty(java.lang.String name,
java.lang.String value)
name - the name of the arbitrary property.value - the value of the arbitrary property. If null, the property
will be deleted.
public TreePaje.Node setURL(java.lang.String url)
url - the destination URL when this node is selected.
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||