|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.vo.TapMetaTreeModel
public class TapMetaTreeModel
TreeModel for representing a TAP table set.
Constructor Summary | |
---|---|
TapMetaTreeModel()
Constructs an empty tree model. |
|
TapMetaTreeModel(SchemaMeta[] schemas)
Constructs a tree model to display a given table set. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TapMetaTreeModel()
public TapMetaTreeModel(SchemaMeta[] schemas)
schemas
- schema array defining the table metadata to be
representedMethod Detail |
---|
public void setSchemas(SchemaMeta[] schemas)
schemas
- schema array defining the table metadata to be
representedpublic SchemaMeta[] getSchemas()
public Object getRoot()
getRoot
in interface TreeModel
public boolean isLeaf(Object node)
isLeaf
in interface TreeModel
public int getChildCount(Object parent)
getChildCount
in interface TreeModel
public Object getChild(Object parent, int index)
getChild
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 class
public static SchemaMeta getSchema(TreePath path)
path
- tree path associated with an instance of this class
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |