|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTree
org.embl.ebi.escience.scuflui.shared.ExtendedJTree
org.embl.ebi.escience.scuflui.workbench.DefaultScavengerTree
public class DefaultScavengerTree
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/interfaces inherited from class javax.swing.JTree |
|---|
JTree.AccessibleJTree, JTree.DynamicUtilTreeNode, JTree.EmptySelectionModel, JTree.TreeModelHandler, JTree.TreeSelectionRedirector |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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.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 | |
|---|---|
DefaultScavengerTree(boolean populate,
ScavengerTreePanel parentPanel)
Create a new scavenger tree, if the boolean 'populate' flag is true then load the default service set from the system properties, otherwise start with a completely blank panel. |
|
| Method Summary | |
|---|---|
protected void |
addFromScavengerHelpers()
|
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(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 |
void |
dragDropEnd(DragSourceDropEvent e)
|
void |
dragEnter(DragSourceDragEvent e)
|
void |
dragEnter(DropTargetDragEvent e)
|
void |
dragExit(DragSourceEvent e)
|
void |
dragExit(DropTargetEvent e)
|
void |
dragGestureRecognized(DragGestureEvent e)
Recognize the drag gesture, only allow if there's a processor factory node here, and export the XML fragment from the node as the transferable |
void |
dragOver(DragSourceDragEvent e)
|
void |
dragOver(DropTargetDragEvent e)
|
void |
drop(DropTargetDropEvent e)
|
void |
dropActionChanged(DragSourceDragEvent e)
|
void |
dropActionChanged(DropTargetDragEvent e)
|
ImageIcon |
getIcon()
Get an icon to be used in window decorations for this component. |
String |
getName()
Return an apppropriate title for windows |
int |
getNextCount()
Get the next available count and increment the counter |
ScavengerTreePanel |
getParentPanel()
|
boolean |
isPopulating()
|
void |
onDisplay()
Called when the component is displayed in the UI |
void |
onDispose()
Called after the component has been removed from the UI |
void |
scavengingDone()
Notifies the end of scavenging. |
void |
scavengingStarting(String message)
Notifies the start of scavenging. |
void |
setPopulating(boolean populating)
|
| Methods inherited from class org.embl.ebi.escience.scuflui.shared.ExtendedJTree |
|---|
getContainingFrame, jumpToAndHighlight, setExpansion, setPattern |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.embl.ebi.escience.scuflui.workbench.ScavengerTree |
|---|
getContainingFrame, getModel |
| Constructor Detail |
|---|
public DefaultScavengerTree(boolean populate,
ScavengerTreePanel parentPanel)
| Method Detail |
|---|
public ScavengerTreePanel getParentPanel()
public void setPopulating(boolean populating)
setPopulating in interface ScavengerTreepublic boolean isPopulating()
isPopulating in interface ScavengerTreepublic int getNextCount()
ScavengerTree
getNextCount in interface ScavengerTreepublic void scavengingStarting(String message)
ScavengerTree
scavengingStarting in interface ScavengerTreemessage - the message to displaypublic void scavengingDone()
ScavengerTree
scavengingDone in interface ScavengerTreepublic void dragGestureRecognized(DragGestureEvent e)
dragGestureRecognized in interface DragGestureListenerpublic void dragDropEnd(DragSourceDropEvent e)
dragDropEnd in interface DragSourceListenerpublic void dragEnter(DragSourceDragEvent e)
dragEnter in interface DragSourceListenerpublic void dragExit(DragSourceEvent e)
dragExit in in