|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsampler.view.DbDirectoryTreeNode
public class DbDirectoryTreeNode
| Constructor Summary | |
|---|---|
DbDirectoryTreeNode(DbDirectoryInfo info)
Creates a new instance of DbDirectoryTreeNode. |
|
| Method Summary | |
|---|---|
void |
addDirectories(DbDirectoryTreeNode[] children)
|
void |
addDirectory(DbDirectoryTreeNode child)
|
void |
addInstrument(DbInstrumentInfo info)
|
void |
addInstruments(DbInstrumentInfo[] infos)
|
void |
addInstrumentsDbListener(InstrumentsDbListener l)
Registers the specified listener for receiving event messages. |
java.util.Enumeration |
children()
|
boolean |
getAllowsChildren()
|
DbDirectoryTreeNode |
getChildAt(int index)
|
int |
getChildCount()
|
int |
getIndex(javax.swing.tree.TreeNode node)
|
DbDirectoryInfo |
getInfo()
|
DbInstrumentInfo |
getInstrument(java.lang.String instrName)
Gets the instrument with the specified name. |
DbInstrumentInfo |
getInstrumentAt(int index)
|
int |
getInstrumentCount()
|
int |
getInstrumentIndex(DbInstrumentInfo instr)
|
DbDirectoryTreeNode |
getParent()
|
boolean |
isConnected()
|
boolean |
isDetached()
Determines whether the node is part of a tree or not. |
boolean |
isLeaf()
|
void |
removeAllDirectories()
|
void |
removeAllInstruments()
|
void |
removeDirectory(int index)
|
void |
removeDirectoryByPathName(java.lang.String path)
|
void |
removeInstrument(int index)
|
void |
removeInstrumentByPathName(java.lang.String path)
|
void |
removeInstrumentsDbListener(InstrumentsDbListener l)
Removes the specified listener. |
void |
setConnected(boolean b)
|
void |
setDetached(boolean b)
Sets whether the node is part of a tree or not. |
void |
setInfo(DbDirectoryInfo info)
|
protected void |
setName(java.lang.String newName)
Renames this node. |
void |
setParent(DbDirectoryTreeNode parent)
|
java.lang.String |
toString()
|
void |
updateDirectory(DbDirectoryInfo info)
|
protected void |
updateDirectoryPaths()
Invoked when the name of a parent node is changed. |
void |
updateInstrument(DbInstrumentInfo info)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DbDirectoryTreeNode(DbDirectoryInfo info)
DbDirectoryTreeNode.
| Method Detail |
|---|
public void addInstrumentsDbListener(InstrumentsDbListener l)
l - The InstrumentsDbListener to register.public void removeInstrumentsDbListener(InstrumentsDbListener l)
l - The InstrumentsDbListener to remove.public DbDirectoryInfo getInfo()
public void setInfo(DbDirectoryInfo info)
protected void setName(java.lang.String newName)
protected void updateDirectoryPaths()
public DbDirectoryTreeNode getChildAt(int index)
getChildAt in interface javax.swing.tree.TreeNodepublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodepublic DbDirectoryTreeNode getParent()
getParent in interface javax.swing.tree.TreeNodepublic int getIndex(javax.swing.tree.TreeNode node)
getIndex in interface javax.swing.tree.TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodepublic boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodepublic java.util.Enumeration children()
children in interface javax.swing.tree.TreeNodepublic void setParent(DbDirectoryTreeNode parent)
public void addDirectory(DbDirectoryTreeNode child)
public void addDirectories(DbDirectoryTreeNode[] children)
public void removeDirectory(int index)
public void removeDirectoryByPathName(java.lang.String path)
public void removeInstrumentByPathName(java.lang.String path)
public void removeAllDirectories()
public void updateDirectory(DbDirectoryInfo info)
public void addInstrument(DbInstrumentInfo info)
public void addInstruments(DbInstrumentInfo[] infos)
public void removeAllInstruments()
public void updateInstrument(DbInstrumentInfo info)
public DbInstrumentInfo getInstrumentAt(int index)
public int getInstrumentCount()
public int getInstrumentIndex(DbInstrumentInfo instr)
public void removeInstrument(int index)
public DbInstrumentInfo getInstrument(java.lang.String instrName)
instrName - The name of the instrument to return.
null
if there is no instrument with the specified name in this directory.public boolean isConnected()
public void setConnected(boolean b)
public boolean isDetached()
false.
public void setDetached(boolean b)
public java.lang.String toString()
toString in class java.lang.Object
|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||