org.embl.ebi.escience.scuflui
Class WorkflowInputPanelFactory

java.lang.Object
  extended by org.embl.ebi.escience.scuflui.WorkflowInputPanelFactory
All Implemented Interfaces:
UIComponentFactorySPI

public class WorkflowInputPanelFactory
extends java.lang.Object
implements UIComponentFactorySPI


Constructor Summary
WorkflowInputPanelFactory()
           
 
Method Summary
static boolean checkValidWorkflow(ScuflModel workflow, java.awt.Component parentComponent)
           
static void executeWorkflow(ScuflModel workflow, java.util.Map<java.lang.String,DataThing> inputs)
          Immediately execute workflow.
 UIComponentSPI getComponent()
          Construct a JComponent from this factory, cast as a UIComponent but must also implement JComponent (if anyone knows how to define this sensibly I'm all ears...)
 javax.swing.ImageIcon getIcon()
          Get an icon to be used in window decorations for this component.
 java.lang.String getName()
          Get the preferred name of this component, for titles in windows etc.
static WorkflowInputPanel invokeWorkflow(ScuflModel workflow)
          Invoke workflow.
static WorkflowInputPanel invokeWorkflow(ScuflModel workflow, java.awt.Component parentComponent)
          Invoke workflow.
static WorkflowInputPanel invokeWorkflow(ScuflModel workflow, java.util.Map<java.lang.String,DataThing> inputs)
          Invoke workflow.
static WorkflowInputPanel invokeWorkflow(ScuflModel workflow, java.util.Map<java.lang.String,DataThing> inputs, java.awt.Component parentComponent)
          Invoke workflow.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowInputPanelFactory

public WorkflowInputPanelFactory()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: UIComponentFactorySPI
Get the preferred name of this component, for titles in windows etc.

Specified by:
getName in interface UIComponentFactorySPI

getIcon

public javax.swing.ImageIcon getIcon()
Description copied from interface: UIComponentFactorySPI
Get an icon to be used in window decorations for this component.

Specified by:
getIcon in interface UIComponentFactorySPI

getComponent

public UIComponentSPI getComponent()
Description copied from interface: UIComponentFactorySPI
Construct a JComponent from this factory, cast as a UIComponent but must also implement JComponent (if anyone knows how to define this sensibly I'm all ears...)

Specified by:
getComponent in interface UIComponentFactorySPI

invokeWorkflow

public static WorkflowInputPanel invokeWorkflow(ScuflModel workflow)
Invoke workflow. Pop up a WorkflowInputPanel for the user to specify the inputs if needed, otherwise the execution will start immediately.

Parameters:
workflow - Workflow to run
Returns:
Recently opened WorkflowInputPanel instance, or null if no inputs were required
See Also:
executeWorkflow(ScuflModel workflow, Map inputs)

invokeWorkflow

public static WorkflowInputPanel invokeWorkflow(ScuflModel workflow,
                                                java.util.Map<java.lang.String,DataThing> inputs)
Invoke workflow. Pop up a WorkflowInputPanel for the user to specify the inputs if needed, with defaults loaded from the provided inputs map.

Parameters:
workflow - Workflow to run
inputs - Map of input values to populate the input panel with
Returns:
Recently opened WorkflowInputPanel instance, or null if no inputs were required
See Also:
executeWorkflow(ScuflModel workflow, Map inputs)

invokeWorkflow

public static WorkflowInputPanel invokeWorkflow(ScuflModel workflow,
                                                java.awt.Component parentComponent)
Invoke workflow. Pop up a WorkflowInputPanel for the user to specify the inputs if needed, with defaults loaded from the provided inputs map.

Parameters:
workflow - Workflow to run
parentComponent - Parent Component to use for warning pop-ups
Returns:
Recently opened WorkflowInputPanel instance, or null if no inputs were required
See Also:
executeWorkflow(ScuflModel workflow, Map inputs)

invokeWorkflow

public static WorkflowInputPanel invokeWorkflow(ScuflModel workflow,
                                                java.util.Map<java.lang.String,DataThing> inputs,
                                                java.awt.Component parentComponent)
Invoke workflow. Pop up a WorkflowInputPanel for the user to specify the inputs if needed, with defaults loaded from the provided inputs map.

Parameters:
workflow - Workflow to run
inputs - Map of input values to populate the input panel with
parentComponent - Parent Component to use for warning pop-ups
Returns:
Recently opened WorkflowInputPanel instance, or null if no inputs were required
See Also:
executeWorkflow(ScuflModel workflow, Map inputs)

checkValidWorkflow

public static boolean checkValidWorkflow(ScuflModel workflow,
                                         java.awt.Component parentComponent)

executeWorkflow

public static void executeWorkflow(ScuflModel workflow,
                                   java.util.Map<java.lang.String,DataThing> inputs)
Immediately execute workflow. Workflow is submitted to the enactor with the given input values, and invocation is initiated. Switches to the

Parameters:
workflow - Workflow to run
inputs - Map of input values to run the workflow with
Throws: