|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ojb.tools.mapping.reversedb2.propertyEditors.EditableTreeNodeWithProperties
org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.ReverseDbTreeNode
Abstract implementation of a treenode representing an metadata object in a database. It implements loading the children of the node in a separate thread, thus not blocking the user interface.
| Field Summary | |
protected java.util.ArrayList |
alChildren
List of children of this treenode. |
| Fields inherited from class org.apache.ojb.tools.mapping.reversedb2.propertyEditors.EditableTreeNodeWithProperties |
propertyChangeDelegate |
| Constructor Summary | |
ReverseDbTreeNode(java.sql.DatabaseMetaData pdbMeta,
DatabaseMetaDataTreeModel pdbMetaTreeModel,
ReverseDbTreeNode pparent)
|
|
| Method Summary | |
protected abstract boolean |
_load()
Purpose of this method is to fill the children of the node. |
java.util.Enumeration |
children()
|
abstract boolean |
getAllowsChildren()
|
javax.swing.tree.TreeNode |
getChildAt(int index)
|
int |
getChildCount()
|
protected java.sql.DatabaseMetaData |
getDbMeta()
Access method for the DatabaseMetaData object of this tree model |
protected DatabaseMetaDataTreeModel |
getDbMetaTreeModel()
Access method for the TreeModel this node is associated to. |
int |
getIndex(javax.swing.tree.TreeNode o)
|
javax.swing.tree.TreeNode |
getParent()
|
abstract boolean |
isLeaf()
|
void |
load(boolean recursive,
boolean replace,
boolean inNewThread)
Loads the children of this TreeNode. |
void |
loadWait(boolean recursive,
boolean replace,
boolean inNewThread)
Loads the children of this TreeNode. |
| Methods inherited from class org.apache.ojb.tools.mapping.reversedb2.propertyEditors.EditableTreeNodeWithProperties |
addPropertyChangeListener, addPropertyChangeListener, getAttribute, removePropertyChangeListener, removePropertyChangeListener, setAttribute |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.ojb.tools.mapping.reversedb2.propertyEditors.PropertyEditorTarget |
getPropertyEditorClass |
| Field Detail |
protected java.util.ArrayList alChildren
| Constructor Detail |
public ReverseDbTreeNode(java.sql.DatabaseMetaData pdbMeta,
DatabaseMetaDataTreeModel pdbMetaTreeModel,
ReverseDbTreeNode pparent)
| Method Detail |
public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt in interface javax.swing.tree.TreeNodeTreeNode.getChildAt(int)public int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodeTreeNode.getChildCount()public javax.swing.tree.TreeNode getParent()
getParent in interface javax.swing.tree.TreeNodeTreeNode.getParent()public int getIndex(javax.swing.tree.TreeNode o)
getIndex in interface javax.swing.tree.TreeNodeTreeNode.getIndex(TreeNode)public abstract boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodeTreeNode.getAllowsChildren()public abstract boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodeTreeNode.isLeaf()public java.util.Enumeration children()
children in interface javax.swing.tree.TreeNodeTreeNode.children()
public void load(boolean recursive,
boolean replace,
boolean inNewThread)
recursive - If true, all children down to the leaf node are retrievedreplace - If true the children are loaded unconditionally. If false the
retrieval is only done if the node has not been populated before.inNewThread - if true the load is done in a new thread.
public void loadWait(boolean recursive,
boolean replace,
boolean inNewThread)
recursive - if true, all children down to the leaf node are retrieved.replace - if false and the list of children is already populated, return without action. If recursive
is true, all children down to the leaf of the tree are checked.protected java.sql.DatabaseMetaData getDbMeta()
protected DatabaseMetaDataTreeModel getDbMetaTreeModel()
protected abstract boolean _load()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||