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

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTree
org.embl.ebi.escience.scuflui.ScuflModelExplorer
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.Scrollable, org.embl.ebi.escience.scufl.ScuflModelEventListener, ScuflUIComponent, java.io.Serializable
- public class ScuflModelExplorer
- extends javax.swing.JTree
- implements org.embl.ebi.escience.scufl.ScuflModelEventListener, ScuflUIComponent
- extends javax.swing.JTree
A swing component that provides an expandable tree view of the constituent components of a ScuflModel instance.
| 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 | |
(package private) org.embl.ebi.escience.scufl.ScuflModel |
model
|
private int |
regenerationStatus
|
private javax.swing.tree.DefaultMutableTreeNode |
root
|
private javax.swing.tree.DefaultTreeModel |
theTreeModel
|
| 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 | |
ScuflModelExplorer()
Default constructor, creates a new ScuflModelExplorer that is not bound to any ScuflModel instance. |
|
| Method Summary | |
void |
attachToModel(org.embl.ebi.escience.scufl.ScuflModel theModel)
Bind this view onto a ScuflModel instance, this registers the view to receive events and thus keep up to date. |
void |
detachFromModel()
Unbind from the current model, does nothing if we're not bound to a model. |
private void |
expandAll(javax.swing.JTree tree,
javax.swing.tree.TreePath parent,
boolean expand)
|
java.lang.String |
getName()
Return a preferred name for windows containing this component |
void |
receiveModelEvent(org.embl.ebi.escience.scufl.ScuflModelEvent event)
Handle events from the model in order to keep up to date with any changes in state. |
private void |
regenerateTreeModel()
Update the tree structure to match that of the ScuflModel |
void |
setDefaultExpansionState()
Set the default expansion state, with all processors, data constraints and workflow source and sink ports show, but nothing else. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
root
private javax.swing.tree.DefaultMutableTreeNode root
model
org.embl.ebi.escience.scufl.ScuflModel model
theTreeModel
private javax.swing.tree.DefaultTreeModel theTreeModel
regenerationStatus
private int regenerationStatus
| Constructor Detail |
ScuflModelExplorer
public ScuflModelExplorer()
- Default constructor, creates a new ScuflModelExplorer that
is not bound to any ScuflModel instance. Use the attachToModel
method to actually show data in this component.
| Method Detail |
setDefaultExpansionState
public void setDefaultExpansionState()
- Set the default expansion state, with all processors, data
constraints and workflow source and sink ports show, but
nothing else.
expandAll
private void expandAll(javax.swing.JTree tree, javax.swing.tree.TreePath parent, boolean expand)
attachToModel
public void attachToModel(org.embl.ebi.escience.scufl.ScuflModel theModel)
- Bind this view onto a ScuflModel instance, this
registers the view to receive events and thus keep
up to date.
- Specified by:
attachToModelin interfaceScuflUIComponent
detachFromModel
public void detachFromModel()
- Unbind from the current model, does nothing if
we're not bound to a model.
- Specified by:
detachFromModelin interfaceScuflUIComponent
receiveModelEvent
public void receiveModelEvent(org.embl.ebi.escience.scufl.ScuflModelEvent event)
- Handle events from the model in order to keep up
to date with any changes in state.
- Specified by:
receiveModelEventin interfaceorg.embl.ebi.escience.scufl.ScuflModelEventListener
regenerateTreeModel
private void regenerateTreeModel()
- Update the tree structure to match that of the ScuflModel
getName
public java.lang.String getName()
- Return a preferred name for windows containing this component
- Specified by:
getNamein interfaceScuflUIComponent
|
|||||||||
| Home >> All >> org >> embl >> ebi >> escience >> [ scuflui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC