|
|||||||||
| Home >> All >> org >> embl >> ebi >> escience >> scuflui >> [ workbench overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.embl.ebi.escience.scuflui.workbench
Class ScavengerTree

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTree
org.embl.ebi.escience.scuflui.workbench.ScavengerTree
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.Scrollable, org.embl.ebi.escience.scuflui.ScuflUIComponent, java.io.Serializable
- public class ScavengerTree
- extends javax.swing.JTree
- implements org.embl.ebi.escience.scuflui.ScuflUIComponent
- extends javax.swing.JTree
A JTree subclass showing available processors from some set of external libraries or searches. Nodes corresponding to a single potential processor instance should contain a user object implementing ProcessorFactory.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JTree |
javax.swing.JTree.AccessibleJTree, javax.swing.JTree.DynamicUtilTreeNode, javax.swing.JTree.EmptySelectionModel, javax.swing.JTree.TreeModelHandler, javax.swing.JTree.TreeSelectionRedirector |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
private int |
count
A private count to avoid name duplication on created nodes |
protected org.embl.ebi.escience.scufl.ScuflModel |
model
The model that this scavenger will create processor for |
(package private) javax.swing.tree.DefaultMutableTreeNode |
root
The root node |
(package private) java.util.ArrayList |
scavengerList
A list of the names of all the scavengers contained within this tree |
(package private) javax.swing.tree.DefaultTreeModel |
treeModel
The tree model |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
ScavengerTree()
Create a new scavenger tree |
|
| Method Summary | |
void |
addScavenger(Scavenger theScavenger)
Add a new scavenger to the tree, firing appropriate model events as we do. |
void |
addScavengersFromModel()
Examine the model, create any scavengers that would have been required to populate the model with its existing processors. |
void |
attachToModel(org.embl.ebi.escience.scufl.ScuflModel theModel)
Listen for model bind requests to set the internal ScuflModel field |
void |
detachFromModel()
When unbound from a model, set internal model field to null |
java.lang.String |
getName()
Return an apppropriate title for windows |
int |
getNextCount()
Get the next available count and increment the counter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
model
protected org.embl.ebi.escience.scufl.ScuflModel model
- The model that this scavenger will create processor for
root
javax.swing.tree.DefaultMutableTreeNode root
- The root node
treeModel
javax.swing.tree.DefaultTreeModel treeModel
- The tree model
scavengerList
java.util.ArrayList scavengerList
- A list of the names of all the scavengers contained within this tree
count
private int count
- A private count to avoid name duplication on created nodes
| Constructor Detail |
ScavengerTree
public ScavengerTree()
- Create a new scavenger tree
| Method Detail |
getNextCount
public int getNextCount()
- Get the next available count and increment the counter
addScavengersFromModel
public void addScavengersFromModel()
throws ScavengerCreationException
- Examine the model, create any scavengers that would have been required
to populate the model with its existing processors. Now handles all three
processor types.
addScavenger
public void addScavenger(Scavenger theScavenger)
- Add a new scavenger to the tree, firing appropriate
model events as we do.
attachToModel
public void attachToModel(org.embl.ebi.escience.scufl.ScuflModel theModel)
- Listen for model bind requests to set the internal
ScuflModel field
- Specified by:
attachToModelin interfaceorg.embl.ebi.escience.scuflui.ScuflUIComponent
detachFromModel
public void detachFromModel()
- When unbound from a model, set internal model field
to null
- Specified by:
detachFromModelin interfaceorg.embl.ebi.escience.scuflui.ScuflUIComponent
getName
public java.lang.String getName()
- Return an apppropriate title for windows
- Specified by:
getNamein interfaceorg.embl.ebi.escience.scuflui.ScuflUIComponent
|
|||||||||
| Home >> All >> org >> embl >> ebi >> escience >> scuflui >> [ workbench overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC