|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
samples.javaclient.analyzer.CatalogTreeNode
A node of a CatalogTree
.
This object can represent a folder, a crosstab, a graph, or a saved
selection.
CatalogExplorer
,
FavoritesExplorer
,
Serialized FormNested Class Summary |
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode |
|
Field Summary | |
private int |
m_children
|
private oracle.dss.bicontext.BIContext |
m_context
|
private oracle.dss.bicontext.BISearchResult |
m_entry
|
private java.lang.String |
m_fullPathName
|
private int[] |
m_indexes
|
private boolean |
m_isRoot
|
private boolean |
m_loaded
|
private BITreeModel |
m_model
|
private java.lang.String |
m_name
|
private java.lang.String |
m_type
|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
CatalogTreeNode(BITreeModel model,
java.lang.String rootName)
Constructor for the root node. |
|
CatalogTreeNode(BITreeModel model,
java.lang.String pathName,
oracle.dss.bicontext.BISearchResult entry)
Constructor for nodes other than the root node. |
Method Summary | |
javax.swing.tree.TreeNode |
getChildAt(int index)
Gets a child node, from an index. |
private void |
getChildList()
Creates a node for each child of this node. |
private oracle.dss.bicontext.BIContext |
getDirContext()
Gets the folder for the object that this node represents. |
java.lang.String |
getFullPathName()
Gets the path name for the object that this node represents, relative to the root folder. |
int[] |
getIndexes()
Gets the indexes of displayed child nodes. |
java.lang.String |
getName()
Gets the Catalog name of the object that this node represents. |
java.lang.String |
getObjectType()
Gets the type of object that this node represents. |
private oracle.dss.bicontext.BISearchResult |
getSearchResult()
Gets the object that this node represents. |
private void |
initializeFromEntry(javax.naming.directory.SearchResult entry)
Initializes this node from information in a SearchResult. |
boolean |
isFolder(oracle.dss.bicontext.BISearchResult entry)
Indicates whether this node represents a folder. |
boolean |
isLeaf()
Indicates whether this node is a leaf node (has no children). |
boolean |
isLoaded()
Indicates whether child nodes for this node are displayed. |
boolean |
isRoot()
Indicates whether this node is the root node. |
void |
load()
Displays child nodes of this node. |
void |
removeAllChildren()
Removes all child nodes. |
java.lang.String |
toString()
Gets a String representation of this node. |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeFromParent, setAllowsChildren, setParent, setUserObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private oracle.dss.bicontext.BISearchResult m_entry
private java.lang.String m_name
private java.lang.String m_fullPathName
private java.lang.String m_type
private boolean m_loaded
private int m_children
private oracle.dss.bicontext.BIContext m_context
private boolean m_isRoot
private int[] m_indexes
private BITreeModel m_model
Constructor Detail |
public CatalogTreeNode(BITreeModel model, java.lang.String rootName)
model
- The tree model to which this node belongs.rootName
- The label for this node.public CatalogTreeNode(BITreeModel model, java.lang.String pathName, oracle.dss.bicontext.BISearchResult entry)
model
- The tree model to which this node belongs.pathName
- The location of this object in the Catalog, relative
to the root folder.entry
- The search result that contains information about
the object that this node represents.
The search result comes from a call to the
search method of a BIContext.Method Detail |
private void initializeFromEntry(javax.naming.directory.SearchResult entry)
entry
- The search result that has information about the object
that this node represents.
oracle.dss.bicontext.BIContext.search returns an enumeration
of search results.public int[] getIndexes()
private oracle.dss.bicontext.BIContext getDirContext()
private oracle.dss.bicontext.BISearchResult getSearchResult()
public java.lang.String getName()
public java.lang.String getFullPathName()
public java.lang.String getObjectType()
public void load()
load
in interface BITreeNode
getChildList()
private void getChildList()
public boolean isLoaded()
isLoaded
in interface BITreeNode
true
if child nodes are displayed,
false
if they are not.public boolean isFolder(oracle.dss.bicontext.BISearchResult entry)
entry
- The search result that provides access to the object
that this node represents.
true
if this node represents a folder,
false
if it represents an object, such as a
graph.public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
index
- The index of the child node you want.public void removeAllChildren()
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
true
if this node has no child nodes,
false
if it has child nodes.public boolean isRoot()
true
if this node is the root node,
false
if it is not.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |