| Constructor and Description |
|---|
TapMetaTreeModel(SchemaMeta[] schemas,
TapMetaOrder order)
Constructs a tree model to display a given table set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTreeModelListener(TreeModelListener lnr) |
Object |
getChild(Object parent,
int index) |
int |
getChildCount(Object parent) |
int |
getIndexOfChild(Object parent,
Object child) |
TapMetaOrder |
getOrder()
Returns the node ordering being used by this model.
|
TreePath |
getPathForTableName(String tname)
Returns the path in this tree that corresponds to a given table name.
|
Object |
getRoot() |
static SchemaMeta |
getSchema(TreePath path)
Acquires the schema metadata object, if any, associated with
a given tree path.
|
SchemaMeta[] |
getSchemas()
Returns the schemas array that forms the root of this tree model.
|
static TableMeta |
getTable(TreePath path)
Acquires the table metadata object, if any, associated with
a given tree path.
|
boolean |
isLeaf(Object node) |
void |
removeTreeModelListener(TreeModelListener lnr) |
void |
setOrder(TapMetaOrder order)
Sets the node ordering to be used by this model.
|
void |
setSchemas(SchemaMeta[] schemas)
Sets the content of this tree.
|
void |
valueForPathChanged(TreePath path,
Object newValue) |
public TapMetaTreeModel(SchemaMeta[] schemas, TapMetaOrder order)
schemas - schema array defining the table metadata to be
representedorder - initial ordering policy for contentspublic void setSchemas(SchemaMeta[] schemas)
schemas - schema array defining the table metadata to be
representedpublic TapMetaOrder getOrder()
public void setOrder(TapMetaOrder order)
order - orderingpublic SchemaMeta[] getSchemas()
public TreePath getPathForTableName(String tname)
tname - table namepublic int getChildCount(Object parent)
getChildCount in interface TreeModelpublic int getIndexOfChild(Object parent, Object child)
getIndexOfChild in interface TreeModelpublic void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged in interface TreeModelpublic void addTreeModelListener(TreeModelListener lnr)
addTreeModelListener in interface TreeModelpublic void removeTreeModelListener(TreeModelListener lnr)
removeTreeModelListener in interface TreeModelpublic static TableMeta getTable(TreePath path)
path - tree path associated with an instance of this classpublic static SchemaMeta getSchema(TreePath path)
path - tree path associated with an instance of this classCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.