public static class HelpTree.Node
extends java.lang.Object
Constructor and Description |
---|
Node(I18NResourceBundle i18n,
java.lang.String prefix)
Create a node, with no children.
|
Node(I18NResourceBundle i18n,
java.lang.String prefix,
HelpTree.Node[] children)
Create a node, with given children.
|
Node(I18NResourceBundle i18n,
java.lang.String prefix,
java.lang.String[] entries)
Create a node and its children.
|
Node(java.lang.String name,
java.lang.String description)
Create a node, with no children.
|
Node(java.lang.String name,
java.lang.String description,
HelpTree.Node[] children)
Create a node, with given children.
|
Modifier and Type | Method and Description |
---|---|
HelpTree.Node |
getChild(int i)
Get a specified child of this node.
|
int |
getChildCount()
Get the number of children of this node.
|
java.lang.String |
getDescription()
Get the description of this node.
|
java.lang.String |
getName()
Get the name of this node.
|
public Node(java.lang.String name, java.lang.String description)
name
- the name for the nodedescription
- the description for the nodepublic Node(java.lang.String name, java.lang.String description, HelpTree.Node[] children)
name
- the name for the nodedescription
- the description for the nodechildren
- the child nodes for the nodepublic Node(I18NResourceBundle i18n, java.lang.String prefix)
i18n
- the resource bundle from which to obtain the
name and description for the node.prefix
- the prefix for the names of the name and description
entries in the resource bundle.public Node(I18NResourceBundle i18n, java.lang.String prefix, HelpTree.Node[] children)
i18n
- the resource bundle from which to obtain the
name and description for the node.prefix
- the prefix for the names of the name and description
entries in the resource bundle.children
- the child nodes for this nodepublic Node(I18NResourceBundle i18n, java.lang.String prefix, java.lang.String[] entries)
i18n
- the resource bundle from which to obtain the
name and description for the node.prefix
- the prefix for the names of the name and description
entries in the resource bundle.entries
- the array of entry names used to create
the child nodes.public final java.lang.String getName()
public final java.lang.String getDescription()
public int getChildCount()
public HelpTree.Node getChild(int i)
i
- the index of the desired childCopyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.