Constructor and Description |
---|
TapMetaTreeModel()
Constructs an empty tree model.
|
TapMetaTreeModel(SchemaMeta[] schemas)
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) |
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 |
setSchemas(SchemaMeta[] schemas)
Sets the content of this tree.
|
void |
valueForPathChanged(TreePath path,
Object newValue) |
public TapMetaTreeModel()
public TapMetaTreeModel(SchemaMeta[] schemas)
schemas
- schema array defining the table metadata to be
representedpublic void setSchemas(SchemaMeta[] schemas)
schemas
- schema array defining the table metadata to be
representedpublic SchemaMeta[] getSchemas()
public int getChildCount(Object parent)
getChildCount
in interface TreeModel
public int getIndexOfChild(Object parent, Object child)
getIndexOfChild
in interface TreeModel
public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged
in interface TreeModel
public void addTreeModelListener(TreeModelListener lnr)
addTreeModelListener
in interface TreeModel
public void removeTreeModelListener(TreeModelListener lnr)
removeTreeModelListener
in interface TreeModel
public 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 © 2023 Central Laboratory of the Research Councils. All Rights Reserved.