|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.bioinfweb.treegraph.gui.dialogs.nodedatainput.NodeDataInput
public class NodeDataInput
| Field Summary | |
|---|---|
protected javax.swing.JComboBox |
comboBox
|
| Constructor Summary | |
|---|---|
NodeDataInput(javax.swing.JPanel panel,
int x,
int y)
|
|
| Method Summary | |
|---|---|
protected javax.swing.JComboBox |
getComboBox()
|
NodeDataAdapter |
selectedAdapter()
Returns the currently selected adapter. |
void |
setAdapters(Tree tree)
Refeshs the selectable node data adapters. |
void |
setAdapters(Tree tree,
boolean branchLengthSelectable,
boolean newIDSelectable)
Refeshs the selectable node data adapters. |
void |
setEnabled(boolean enabled)
|
void |
setOnlyNewAdapters()
After the call of this method only adapters which create new data will be available. |
boolean |
setSelectedAdapter(java.lang.Class<? extends NodeDataAdapter> adapterClass)
Selects the adapter which is an instance (not instance of a subclass) of the given class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.swing.JComboBox comboBox
| Constructor Detail |
|---|
public NodeDataInput(javax.swing.JPanel panel,
int x,
int y)
| Method Detail |
|---|
protected javax.swing.JComboBox getComboBox()
public void setEnabled(boolean enabled)
public void setOnlyNewAdapters()
public void setAdapters(Tree tree)
tree - - the tree which contains the data
public void setAdapters(Tree tree,
boolean branchLengthSelectable,
boolean newIDSelectable)
tree - - the tree to obtain the IDs from (Can also be null.)branchLengthSelectable - determines whether the branch length adapter can be
selectednewIDSelectable - - if true the combo box includes the options
"Label with new ID" and "Branch data with new ID"public boolean setSelectedAdapter(java.lang.Class<? extends NodeDataAdapter> adapterClass)
adapterClass -
true, if one adapter was selected, false, if
no adapter of the given class was foundpublic NodeDataAdapter selectedAdapter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||