Class TapMetaTreeModel
java.lang.Object
uk.ac.starlink.vo.TapMetaTreeModel
- All Implemented Interfaces:
TreeModel
-
Constructor Summary
ConstructorsConstructorDescriptionTapMetaTreeModel(SchemaMeta[] schemas, TapMetaOrder order) Constructs a tree model to display a given table set. -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetChildCount(Object parent) intgetIndexOfChild(Object parent, Object child) getOrder()Returns the node ordering being used by this model.getPathForTableName(String tname) Returns the path in this tree that corresponds to a given table name.getRoot()static SchemaMetaAcquires the schema metadata object, if any, associated with a given tree path.Returns the schemas array that forms the root of this tree model.static TableMetaAcquires the table metadata object, if any, associated with a given tree path.booleanvoidvoidsetOrder(TapMetaOrder order) Sets the node ordering to be used by this model.voidsetSchemas(SchemaMeta[] schemas) Sets the content of this tree.voidvalueForPathChanged(TreePath path, Object newValue)
-
Constructor Details
-
TapMetaTreeModel
Constructs a tree model to display a given table set. Note this may reorder the schemas array in place, and the table ordering within each schema.- Parameters:
schemas- schema array defining the table metadata to be representedorder- initial ordering policy for contents
-
-
Method Details
-
setSchemas
Sets the content of this tree. Note this may reorder the schemas array in place, and the table ordering within each schema.- Parameters:
schemas- schema array defining the table metadata to be represented
-
getOrder
Returns the node ordering being used by this model.- Returns:
- ordering
-
setOrder
Sets the node ordering to be used by this model.- Parameters:
order- ordering
-
getSchemas
Returns the schemas array that forms the root of this tree model.- Returns:
- schema array
-
getPathForTableName
-
getRoot
-
isLeaf
-
getChildCount
- Specified by:
getChildCountin interfaceTreeModel
-
getChild
-
getIndexOfChild
- Specified by:
getIndexOfChildin interfaceTreeModel
-
valueForPathChanged
- Specified by:
valueForPathChangedin interfaceTreeModel
-
addTreeModelListener
- Specified by:
addTreeModelListenerin interfaceTreeModel
-
removeTreeModelListener
- Specified by:
removeTreeModelListenerin interfaceTreeModel
-
getTable
-
getSchema
Acquires the schema metadata object, if any, associated with a given tree path.- Parameters:
path- tree path associated with an instance of this class- Returns:
- associated SchemaMeta object, or null
-