|
||||||||||
| 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 |
|---|
javax.swing.JTree.DynamicUtilTreeNode |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JTree |
|---|
ANCHOR_SELECTION_PATH_PROPERTY, CELL_EDITOR_PROPERTY, CELL_RENDERER_PROPERTY, EDITABLE_PROPERTY, EXPANDS_SELECTED_PATHS_PROPERTY, INVOKES_STOP_CELL_EDITING_PROPERTY, LARGE_MODEL_PROPERTY, LEAD_SELECTION_PATH_PROPERTY, ROOT_VISIBLE_PROPERTY, ROW_HEIGHT_PROPERTY, SCROLLS_ON_EXPAND_PROPERTY, SELECTION_MODEL_PROPERTY, SHOWS_ROOT_HANDLES_PROPERTY, TOGGLE_CLICK_COUNT_PROPERTY, TREE_MODEL_PROPERTY, VISIBLE_ROW_COUNT_PROPERTY |
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, 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 | |
|---|---|
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(java.awt.dnd.DragSourceDropEvent e)
|
void |
dragEnter(java.awt.dnd.DragSourceDragEvent e)
|
void |
dragEnter(java.awt.dnd.DropTargetDragEvent e)
|
void |
dragExit(java.awt.dnd.DragSourceEvent e)
|
void |
dragExit(java.awt.dnd.DropTargetEvent e)
|
void |
dragGestureRecognized(java.awt.dnd.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(java.awt.dnd.DragSourceDragEvent e)
|
void |
dragOver(java.awt.dnd.DropTargetDragEvent e)
|
void |
drop(java.awt.dnd.DropTargetDropEvent e)
|
void |
dropActionChanged(java.awt.dnd.DragSourceDragEvent e)
|
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent e)
|
javax.swing.ImageIcon |
getIcon()
Get an icon to be used in window decorations for this component. |
java.lang.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(java.lang.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 javax.swing.JTree |
|---|
addSelectionInterval, addSelectionPath, addSelectionPaths, addSelectionRow, addSelectionRows, addTreeExpansionListener, addTreeSelectionListener, addTreeWillExpandListener, cancelEditing, clearSelection, collapsePath, collapseRow, convertValueToText, expandPath, expandRow, fireTreeCollapsed, fireTreeExpanded, fireTreeWillCollapse, fireTreeWillExpand, getAccessibleContext, getAnchorSelectionPath, getCellEditor, getCellRenderer, getClosestPathForLocation, getClosestRowForLocation, getDragEnabled, getEditingPath, getExpandedDescendants, getExpandsSelectedPaths, getInvokesStopCellEditing, getLastSelectedPathComponent, getLeadSelectionPath, getLeadSelectionRow, getMaxSelectionRow, getMinSelectionRow, getModel, getNextMatch, getPathBounds, getPathForLocation, getPathForRow, getPreferredScrollableViewportSize, getRowBounds, getRowCount, getRowForLocation, getRowForPath, getRowHeight, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollsOnExpand, getSelectionCount, getSelectionModel, getSelectionPath, getSelectionPaths, getSelectionRows, getShowsRootHandles, getToggleClickCount, getToolTipText, getTreeExpansionListeners, getTreeSelectionListeners, getTreeWillExpandListeners, getUI, getUIClassID, getVisibleRowCount, hasBeenExpanded, isCollapsed, isCollapsed, isEditable, isEditing, isExpanded, isExpanded, isFixedRowHeight, isLargeModel, isPathEditable, isPathSelected, isRootVisible, isRowSelected, isSelectionEmpty, isVisible, makeVisible, removeSelectionInterval, removeSelectionPath, removeSelectionPaths, removeSelectionRow, removeSelectionRows, removeTreeExpansionListener, removeTreeSelectionListener, removeTreeWillExpandListener, scrollPathToVisible, scrollRowToVisible, setAnchorSelectionPath, setCellEditor, setCellRenderer, setDragEnabled, setEditable, setExpandsSelectedPaths, setInvokesStopCellEditing, setLargeModel, setLeadSelectionPath, setModel, setRootVisible, setRowHeight, setScrollsOnExpand, setSelectionInterval, setSelectionModel, setSelectionPath, setSelectionPaths, setSelectionRow, setSelectionRows, setShowsRootHandles, setToggleClickCount, setUI, setVisibleRowCount, startEditingAtPath, stopEditing, treeDidChange, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
equals, 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(java.lang.String message)
ScavengerTree
scavengingStarting in interface ScavengerTreemessage - the message to displaypublic void scavengingDone()
ScavengerTree
scavengingDone in interface ScavengerTreepublic void dragGestureRecognized(java.awt.dnd.DragGestureEvent e)
dragGestureRecognized in interface java.awt.dnd.DragGestureListenerpublic void dragDropEnd(java.awt.dnd.DragSourceDropEvent e)
dragDropEnd in interface java.awt.dnd.DragSourceListenerpublic void dragEnter(java.awt.dnd.DragSourceDragEvent e)
dragEnter in interface java.awt.dnd.DragSourceListenerpublic void dragExit(java.awt.dnd.DragSourceEvent e)
dragExit in interface java.awt.dnd.DragSourceListenerpublic void dragOver(java.awt.dnd.DragSourceDragEvent e)
dragOver in interface java.awt.dnd.DragSourceListenerpublic void dropActionChanged(java.awt.dnd.DragSourceDragEvent e)
dropActionChanged in interface java.awt.dnd.DragSourceListenerpublic void dragEnter(java.awt.dnd.DropTargetDragEvent e)
dragEnter in interface java.awt.dnd.DropTargetListenerpublic void dragExit(java.awt.dnd.DropTargetEvent e)
dragExit in interface java.awt.dnd.DropTargetListenerpublic void dragOver(java.awt.dnd.DropTargetDragEvent e)
dragOver in interface java.awt.dnd.DropTargetListenerpublic void dropActionChanged(java.awt.dnd.DropTargetDragEvent e)
dropActionChanged in interface java.awt.dnd.DropTargetListenerpublic void drop(java.awt.dnd.DropTargetDropEvent e)
drop in interface java.awt.dnd.DropTargetListener
public void addScavengersFromModel()
throws ScavengerCreationException
ScavengerTree
addScavengersFromModel in interface ScavengerTreeScavengerCreationExceptionpublic void addScavenger(Scavenger theScavenger)
ScavengerTree
addScavenger in interface ScavengerTreepublic void attachToModel(ScuflModel theModel)
attachToModel in interface WorkflowModelViewSPIpublic void detachFromModel()
detachFromModel in interface WorkflowModelViewSPIpublic java.lang.String getName()
getName in interface UIComponentSPIgetName in class java.awt.Componentpublic javax.swing.ImageIcon getIcon()
UIComponentSPI
getIcon in interface UIComponentSPIpublic void onDisplay()
UIComponentSPI
onDisplay in interface UIComponentSPIpublic void onDispose()
UIComponentSPI
onDispose in interface UIComponentSPI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||