| java.lang.Object org.apache.ojb.tools.mapping.reversedb2.propertyEditors.EditableTreeNodeWithProperties org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.ReverseDbTreeNode
All known Subclasses: org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.DBMetaColumnNode, org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.DBMetaCatalogNode, org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.DBMetaSchemaNode, org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.DBMetaRootNode, org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.DBMetaTableNode,
ReverseDbTreeNode | abstract public class ReverseDbTreeNode extends EditableTreeNodeWithProperties implements java.io.Serializable(Code) | | 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.
author: Administrator |
_load | abstract protected boolean _load()(Code) | | Purpose of this method is to fill the children of the node. It should
replace all children in alChildren (the arraylist containing the children)
of this node and notify the TreeModel that a change has occurred.
|
load | public void load(boolean recursive, boolean replace, boolean inNewThread)(Code) | | Loads the children of this TreeNode. If another Thread is already active on this node the method returns
without doing anything (if a separate Thread is started the method returns anyway, but the Thread might
do nothing).
Parameters: recursive - If true, all children down to the leaf node are retrieved Parameters: replace - If true the children are loaded unconditionally. If false theretrieval is only done if the node has not been populated before. Parameters: inNewThread - if true the load is done in a new thread. |
loadWait | public void loadWait(boolean recursive, boolean replace, boolean inNewThread)(Code) | | Loads the children of this TreeNode. If the node is already populated, this method returns without action. If
there is already a Thread populating this treenode the method waits until the other Thread has finished
Parameters: recursive - if true, all children down to the leaf node are retrieved. Parameters: replace - if false and the list of children is already populated, return without action. If recursiveis true, all children down to the leaf of the tree are checked. |
|
|