As specified by the olap4j api, here is the hierarchy modeled by this tree:
OlapConnection
Catalog
|
Constructor Summary |
Olap4jTreeModel(java.util.List<?> rootItems)
Creates a full tree model of the given list of olap connections. |
Olap4jTreeModel(java.util.List<?> rootItems,
java.lang.Class<?> forceLeafType,
java.lang.Class<?> hideNodeType)
Creates a tree model of the given list of olap connections which only
goes as deep as items of the given leaf type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Olap4jTreeModel
public Olap4jTreeModel(java.util.List<?> rootItems)
- Creates a full tree model of the given list of olap connections.
Olap4jTreeModel
public Olap4jTreeModel(java.util.List<?> rootItems,
java.lang.Class<?> forceLeafType,
java.lang.Class<?> hideNodeType)
- Creates a tree model of the given list of olap connections which only
goes as deep as items of the given leaf type.
- Parameters:
rootItems - The olap4j metadata objects that should appear under the
(hidden) root node of the tree. The items in this list should
be of one of the types mentioned in the class-level comment.forceLeafType - The type that should be considered a leaf, whether or not the
underlying olap4j metadata object has children. If no
"forced leaf" node types are desired, pass in null for this
argument.hideNodeType - The type that should not be shown at all in this tree model.
If no types should be hidden, pass in null for this argument.class1 -
addTreeModelListener
public void addTreeModelListener(javax.swing.event.TreeModelListener l)
- Specified by:
addTreeModelListener in interface javax.swing.tree.TreeModel
removeTreeModelListener
public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
- Specified by:
removeTreeModelListener in interface javax.swing.tree.TreeModel
getChild
public java.lang.Object getChild(java.lang.Object parent,
int index)
- Specified by:
getChild in interface javax.swing.tree.TreeModel
getChildCount
public int getChildCount(java.lang.Object parent)
- Specified by:
getChildCount in interface javax.swing.tree.TreeModel
getIndexOfChild
public int getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
- Specified by:
getIndexOfChild in interface javax.swing.tree.TreeModel
getRoot
public java.lang.Object getRoot()
- Specified by:
getRoot in interface javax.swing.tree.TreeModel
isLeaf
public boolean isLeaf(java.lang.Object node)
- Specified by:
isLeaf in interface javax.swing.tree.TreeModel
valueForPathChanged
public void valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
- Specified by:
valueForPathChanged in interface javax.swing.tree.TreeModel
Copyright © 2009. All Rights Reserved.