org.apache.ojb.tools.mapping.reversedb2.ojbmetatreemodel
Class OjbMetaTreeNode
java.lang.Object
org.apache.ojb.tools.mapping.reversedb2.propertyEditors.EditableTreeNodeWithProperties
org.apache.ojb.tools.mapping.reversedb2.ojbmetatreemodel.OjbMetaTreeNode
- All Implemented Interfaces:
- ActionTarget, java.lang.Comparable, PropertyEditorTarget, java.io.Serializable, javax.swing.tree.TreeNode
- Direct Known Subclasses:
- OjbMetaClassDescriptorNode, OjbMetaCollectionDescriptorNode, OjbMetaExtentClassNode, OjbMetaFieldDescriptorNode, OjbMetaIndexDescriptorNode, OjbMetaJdbcConnectionDescriptorNode, OjbMetaObjectReferenceDescriptorNode, OjbMetaRootNode
- public abstract class OjbMetaTreeNode
- extends EditableTreeNodeWithProperties
- implements java.lang.Comparable, ActionTarget
Abstract implementation of a treenode representing a metadata object
in a repository.
- Version:
- $Id: OjbMetaTreeNode.java,v 1.3 2002/09/04 16:17:23 florianbruckner Exp $
- Author:
- Florian Bruckner
- See Also:
- Serialized Form
Field Summary |
protected java.util.ArrayList |
alChildren
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
alChildren
protected java.util.ArrayList alChildren
OjbMetaTreeNode
public OjbMetaTreeNode(DescriptorRepository pRepository,
OjbMetaDataTreeModel pTreeModel,
OjbMetaTreeNode pparent)
getRepository
public DescriptorRepository getRepository()
getChildAt
public javax.swing.tree.TreeNode getChildAt(int index)
- Specified by:
getChildAt
in interface javax.swing.tree.TreeNode
- See Also:
TreeNode.getChildAt(int)
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in interface javax.swing.tree.TreeNode
- See Also:
TreeNode.getChildCount()
getParent
public javax.swing.tree.TreeNode getParent()
- Specified by:
getParent
in interface javax.swing.tree.TreeNode
- See Also:
TreeNode.getParent()
getIndex
public int getIndex(javax.swing.tree.TreeNode o)
- Specified by:
getIndex
in interface javax.swing.tree.TreeNode
- See Also:
TreeNode.getIndex(TreeNode)
getAllowsChildren
public abstract boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interface javax.swing.tree.TreeNode
- See Also:
TreeNode.getAllowsChildren()
isLeaf
public abstract boolean isLeaf()
- Specified by:
isLeaf
in interface javax.swing.tree.TreeNode
- See Also:
TreeNode.isLeaf()
children
public java.util.Enumeration children()
- Specified by:
children
in interface javax.swing.tree.TreeNode
- See Also:
TreeNode.children()
getOjbMetaTreeModel
protected OjbMetaDataTreeModel getOjbMetaTreeModel()
- Access method for the TreeModel this node is associated to.
_load
protected abstract boolean _load()
- 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 boolean load()
- Recursively loads the metadata for this node
compareTo
public int compareTo(java.lang.Object arg0)
- Specified by:
compareTo
in interface java.lang.Comparable
- See Also:
Comparable.compareTo(Object)
getAssociatedDescriptor
public abstract java.lang.Object getAssociatedDescriptor()
- Return the descriptor object this node is associated with. E.g. if the
node displays a class descriptor, the ClassDescriptor describing the class
should be returned. Used for creating a Transferable.
Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14