org.embl.ebi.escience.scuflui.workbench
Interface ScavengerTree

All Superinterfaces:
java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener, java.awt.dnd.DropTargetListener, java.util.EventListener
All Known Implementing Classes:
DefaultScavengerTree

public interface ScavengerTree
extends java.awt.dnd.DragSourceListener, java.awt.dnd.DragGestureListener, java.awt.dnd.DropTargetListener

A tree 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.

Author:
David Withers

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.
 java.awt.Frame getContainingFrame()
           
 javax.swing.tree.TreeModel getModel()
           
 int getNextCount()
          Get the next available count and increment the counter
 boolean isPopulating()
           
 void scavengingDone()
          Notifies the end of scavenging.
 void scavengingStarting(java.lang.String message)
          Notifies the start of scavenging.
 void setPopulating(boolean populating)
           
 
Methods inherited from interface java.awt.dnd.DragSourceListener
dragDropEnd, dragEnter, dragExit, dragOver, dropActionChanged
 
Methods inherited from interface java.awt.dnd.DragGestureListener
dragGestureRecognized
 
Methods inherited from interface java.awt.dnd.DropTargetListener
dragEnter, dragExit, dragOver, drop, dropActionChanged
 

Method Detail

getContainingFrame

java.awt.Frame getContainingFrame()

scavengingStarting

void scavengingStarting(java.lang.String message)
Notifies the start of scavenging.

Parameters:
message - the message to display

scavengingDone

void scavengingDone()
Notifies the end of scavenging.


setPopulating

void setPopulating(boolean populating)

isPopulating

boolean isPopulating()

getNextCount

int getNextCount()
Get the next available count and increment the counter


getModel

javax.swing.tree.TreeModel getModel()

addScavengersFromModel

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.

Throws:
ScavengerCreationException

addScavenger

void addScavenger(Scavenger theScavenger)
Add a new scavenger to the tree, firing appropriate model events as we do.