|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsamples.javaclient.analyzer.CatalogTreeModel
Implementation of BITreeModel, which allows a JTree to display contents
of the BI Beans Catalog.
The CatalogExplorer
and the FavoritesExplorer
use this
class.
Field Summary | |
private oracle.dss.bicontext.BIContext |
m_context
The root folder in the Catalog. |
private oracle.dss.bicontext.BISearchControls |
m_controls
Search controls to refine the search for objects to display. |
private javax.naming.directory.Attributes |
m_filters
Attributes of objects to search for, to display in the tree. |
private javax.swing.event.EventListenerList |
m_listenerList
Listeners for events that this model generates. |
private CatalogTreeNode |
m_root
The root node in the tree. |
Constructor Summary | |
CatalogTreeModel(oracle.dss.bicontext.BIContext con,
javax.naming.directory.Attributes filters,
oracle.dss.bicontext.BISearchControls controls,
java.lang.String rootName)
Constructor. |
Method Summary | |
void |
addTreeModelListener(javax.swing.event.TreeModelListener l)
Registers a listener for this model. |
void |
fireTreeStructureChanged(BITreeNode node)
Notifies listeners of changes to the tree structure. |
java.lang.Object |
getChild(java.lang.Object node,
int index)
Gets a child node. |
int |
getChildCount(java.lang.Object node)
Gets the number of child nodes that a node has. |
int[] |
getIndexes(java.lang.Object node)
Gets the indexes of child nodes for a node. |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
Gets the index of a child node. |
oracle.dss.bicontext.BIContext |
getInitialContext()
Gets the root folder in the Catalog. |
java.lang.Object |
getRoot()
Gets the root node for this model. |
oracle.dss.bicontext.BISearchControls |
getSearchControls()
The search controls for this CatalogTreeModel. |
javax.naming.directory.Attributes |
getSearchFilters()
Gets the search attributes for this CatalogTreeModel. |
protected void |
initialize(java.lang.String rootName)
Initializes this model. |
boolean |
isLeaf(java.lang.Object node)
Indicates whether a node is a leaf node (has no child nodes). |
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l)
Removes a listener from this model. |
void |
treeCollapsed(javax.swing.event.TreeExpansionEvent evt)
Null implementation for TreeExplansionListener interface. |
void |
treeExpanded(javax.swing.event.TreeExpansionEvent evt)
Responds to tree expansion events. |
void |
valueForPathChanged(javax.swing.tree.TreePath treepath,
java.lang.Object obj)
Null implementation for TreeModel interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private oracle.dss.bicontext.BIContext m_context
private CatalogTreeNode m_root
private javax.naming.directory.Attributes m_filters
private oracle.dss.bicontext.BISearchControls m_controls
private javax.swing.event.EventListenerList m_listenerList
Constructor Detail |
public CatalogTreeModel(oracle.dss.bicontext.BIContext con, javax.naming.directory.Attributes filters, oracle.dss.bicontext.BISearchControls controls, java.lang.String rootName)
con
- The root folder of the Catalog.filters
- Search attributes that specify the Catalog objects to display.controls
- Search controls to specify the scope of the Catalog search.rootName
- A name for the root node of the tree.Method Detail |
public oracle.dss.bicontext.BIContext getInitialContext()
getInitialContext
in interface BITreeModel
public javax.naming.directory.Attributes getSearchFilters()
getSearchFilters
in interface BITreeModel
public oracle.dss.bicontext.BISearchControls getSearchControls()
getSearchControls
in interface BITreeModel
protected void initialize(java.lang.String rootName)
rootName
- The name for the root node.CatalogExplorer.ROOT
,
CatalogExplorer.populateTree()
public java.lang.Object getRoot()
getRoot
in interface javax.swing.tree.TreeModel
public int[] getIndexes(java.lang.Object node)
CatalogTreeNode.getIndexes()
public java.lang.Object getChild(java.lang.Object node, int index)
getChild
in interface javax.swing.tree.TreeModel
node
- The node whose child you want.index
- The index of the child node that you want.
node
at index
.public int getChildCount(java.lang.Object node)
getChildCount
in interface javax.swing.tree.TreeModel
node
- The node whose child nodes to count.
node
has.public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
getIndexOfChild
in interface javax.swing.tree.TreeModel
parent
- The node whose child index you want.child
- The child node whose index you want.public void addTreeModelListener(javax.swing.event.TreeModelListener l)
addTreeModelListener
in interface javax.swing.tree.TreeModel
l
- The listener to add.public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
removeTreeModelListener
in interface javax.swing.tree.TreeModel
l
- The listener to remove.public void fireTreeStructureChanged(BITreeNode node)
fireTreeStructureChanged
in interface BITreeModel
node
- The node whose structure has changed.public void valueForPathChanged(javax.swing.tree.TreePath treepath, java.lang.Object obj)
valueForPathChanged
in interface javax.swing.tree.TreeModel
public boolean isLeaf(java.lang.Object node)
isLeaf
in interface javax.swing.tree.TreeModel
node
- The node that might be a leaf node.
true
if node
has no child nodes,
false
if node
had child nodes.public void treeCollapsed(javax.swing.event.TreeExpansionEvent evt)
treeCollapsed
in interface javax.swing.event.TreeExpansionListener
public void treeExpanded(javax.swing.event.TreeExpansionEvent evt)
treeExpanded
in interface javax.swing.event.TreeExpansionListener
evt
- Information about the tree expansion.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |