public interface VFlow
VFlow interface describes a workflow controller. A workflow is a
network of VNodes. VNodes are connected using
Connectors.| Type | Property and Description |
|---|---|
ObjectProperty |
model
Returns the property of the model that is used by this flow controller.
|
ReadOnlyObjectProperty<VFlow> |
parent |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnections(Connections connections,
String flowType)
Adds the specified connections to this flow controller.
|
Connector |
addInput(String type) |
Connector |
addOutput(String type) |
void |
addSkinFactories(Collection<SkinFactory<? extends ConnectionSkin,? extends VNodeSkin>> skinFactories)
Adds the specified skin factories to this flow controller.
|
void |
addSkinFactories(SkinFactory... skinFactories)
Adds the specified skin factories to this flow controller.
|
ThruConnector |
addThruInput(String type) |
ThruConnector |
addThruOutput(String type) |
void |
clear()
Clears this flow, i.e., removes all nodes and connections.
|
ConnectionResult |
connect(Connector s,
Connector r)
Requests the specified connection.
|
ConnectionResult |
connect(VFlow s,
VFlow r,
String flowType) |
ConnectionResult |
connect(VFlow s,
VNode r,
String flowType) |
ConnectionResult |
connect(VNode s,
VFlow r,
String flowType) |
ConnectionResult |
connect(VNode s,
VNode r,
String flowType)
Requests the specified connection.
|
ObservableMap<String,Connections> |
getAllConnections()
Returns all connections of this flow controller.
|
Connections |
getConnections(String flowType)
Returns the all connections of the specified flow/connection type
|
VFlow |
getFlowById(String id)
Returns child flow by id.
|
Class<? extends VNode> |
getFlowNodeClass()
Returns the flow node implementation class used by this flow controller.
|
IdGenerator |
getIdGenerator()
Returns the id generator used by this flow controller.
|
VFlowModel |
getModel()
Returns the model that is used by this flow controller.
|
NodeLookup |
getNodeLookup()
Returns the node lookup that is used by this flow controller.
|
ObservableList<VNode> |
getNodes()
Returns the nodes of this flow.
|
FlowNodeSkinLookup |
getNodeSkinLookup() |
List<VNodeSkin> |
getNodeSkinsById(String id) |
VFlow |
getParent()
Gets the value of the property parent.
|
VNode |
getReceiver(Connection c)
Returns the receiver of the specified connection.
|
VFlow |
getRootFlow() |
VNode |
getSender(Connection c)
Returns the sender of the specified connection.
|
Collection<SkinFactory<? extends ConnectionSkin,? extends VNodeSkin>> |
getSkinFactories()
Returns the skin factories that are used by this flow controller.
|
Collection<VFlow> |
getSubControllers()
Returns all direct subcontrollers of this flow controller.
|
ObservableList<ThruConnector> |
getThruInputs() |
ObservableList<ThruConnector> |
getThruOutputs() |
boolean |
isVisible() |
ObjectProperty |
modelProperty()
Returns the property of the model that is used by this flow controller.
|
VNode |
newNode()
Adds a new node to this flow.
|
VNode |
newNode(ValueObject obj)
Adds a new node to this flow.
|
VFlow |
newSubFlow()
Adds a new subflow to this flow.
|
VFlow |
newSubFlow(ValueObject obj)
Adds a new subflow to this flow.
|
ReadOnlyObjectProperty<VFlow> |
parentProperty() |
VNode |
remove(VNode n)
Removes the specified node from this flow.
|
void |
removeSkinFactories(Collection<SkinFactory<? extends ConnectionSkin,? extends VNodeSkin>> skinFactories)
Removes the specified skin factories from this flow controller.
|
void |
removeSkinFactories(SkinFactory<? extends ConnectionSkin,? extends VNodeSkin>... skinFactories)
Removes the specified skin factories from this flow controller.
|
void |
setFlowNodeClass(Class<? extends VNode> cls)
Defines the flow node implementation class used by this flow controller.
|
void |
setIdGenerator(IdGenerator generator)
Defines the id generator that shall be used by this flow controller.
|
void |
setModel(VFlowModel flow)
Defines the model that shall be used by this flow controller.
|
void |
setNodeLookup(NodeLookup nodeLookup)
Defines the node lookup that shall be used by this flow controller.
|
void |
setNodeSkinLookup(FlowNodeSkinLookup skinLookup) |
void |
setSkinFactories(Collection<SkinFactory<? extends ConnectionSkin,? extends VNodeSkin>> skinFactories)
Defines the skin factories for this flow controller.
|
void |
setSkinFactories(SkinFactory... skinFactories)
Defines the skin factories for this flow controller.
|
void |
setVisible(boolean state) |
ConnectionResult |
tryConnect(Connector s,
Connector r)
Attempts to create the specified connection.
|
ConnectionResult |
tryConnect(VFlow s,
VFlow r,
String flowType) |
ConnectionResult |
tryConnect(VFlow s,
VNode r,
String flowType) |
ConnectionResult |
tryConnect(VNode s,
VFlow r,
String flowType) |
ConnectionResult |
tryConnect(VNode s,
VNode r,
String flowType)
Attempts to create the specified connection.
|
BooleanProperty |
visibleState() |
ObjectProperty modelProperty
getModel(),
setModel(VFlowModel)ReadOnlyObjectProperty<VFlow> parentProperty
getParent()void setModel(VFlowModel flow)
flow - flow modelvoid setNodeLookup(NodeLookup nodeLookup)
nodeLookup - NodeLookup getNodeLookup()
VFlowModel getModel()
ObjectProperty modelProperty()
getModel(),
setModel(VFlowModel)ConnectionResult tryConnect(Connector s, Connector r)
s - sender connectorr - receiver connectorConnectionResult connect(Connector s, Connector r)
s - sender noder - receiver nodeConnectionResult tryConnect(VNode s, VNode r, String flowType)
s - sender node (uses main output connector of this node if
specified)r - receiver node (uses main input connector of this node if
specified)flowType - connection typeConnectionResult connect(VNode s, VNode r, String flowType)
s - sender noder - receiver nodeflowType - connection typeConnectionResult tryConnect(VFlow s, VNode r, String flowType)
ConnectionResult tryConnect(VNode s, VFlow r, String flowType)
ConnectionResult tryConnect(VFlow s, VFlow r, String flowType)
ConnectionResult connect(VFlow s, VNode r, String flowType)
ConnectionResult connect(VNode s, VFlow r, String flowType)
ConnectionResult connect(VFlow s, VFlow r, String flowType)
VNode remove(VNode n)
n - the node to removenull if no node has been removedObservableList<VNode> getNodes()
void clear()
VNode getSender(Connection c)
c - connectionnull if
the node does not existVNode getReceiver(Connection c)
c - connectionnull if
the node does not existvoid addConnections(Connections connections, String flowType)
connections - connections to addflowType - connection typeConnections getConnections(String flowType)
flowType - connection typeObservableMap<String,Connections> getAllConnections()
void setFlowNodeClass(Class<? extends VNode> cls)
cls - flow node implementation classClass<? extends VNode> getFlowNodeClass()
VNode newNode(ValueObject obj)
obj - value object that shall be used for the requested nodeVNode newNode()
VFlow newSubFlow(ValueObject obj)
obj - value object that shall be used for the requested subflowVFlow newSubFlow()
Collection<VFlow> getSubControllers()
getFlowById(java.lang.String) method to accomplish this.void setSkinFactories(SkinFactory... skinFactories)
skinFactories - skin factories that shall be used by this flow
controller
Doesn't use Generics because generic arrays are not supported. GENERICS
ARE CRAPPY!
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6227971void setSkinFactories(Collection<SkinFactory<? extends ConnectionSkin,? extends VNodeSkin>> skinFactories)
skinFactories - skin factories that shall be used by this flow
controllerCollection<SkinFactory<? extends ConnectionSkin,? extends VNodeSkin>> getSkinFactories()
void addSkinFactories(SkinFactory... skinFactories)
skinFactories - skin factories that shall be added to this flow
controller
Doesn't use Generics because generic arrays are not supported. GENERICS
ARE CRAPPY!
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6227971void addSkinFactories(Collection<SkinFactory<? extends ConnectionSkin,? extends VNodeSkin>> skinFactories)
skinFactories - skin factories that shall be added to this flow
controllervoid removeSkinFactories(SkinFactory<? extends ConnectionSkin,? extends VNodeSkin>... skinFactories)
skinFactories - skin factories to be removedvoid removeSkinFactories(Collection<SkinFactory<? extends ConnectionSkin,? extends VNodeSkin>> skinFactories)
skinFactories - skin factories to be removedvoid setIdGenerator(IdGenerator generator)
generator - id generatorIdGenerator getIdGenerator()
FlowNodeSkinLookup getNodeSkinLookup()
void setNodeSkinLookup(FlowNodeSkinLookup skinLookup)
void setVisible(boolean state)
boolean isVisible()
BooleanProperty visibleState()
VFlow getFlowById(String id)
id - the id that specifies the requested flownull if no such flow
existsVFlow getParent()
ReadOnlyObjectProperty<VFlow> parentProperty()
getParent()VFlow getRootFlow()
ThruConnector addThruInput(String type)
ThruConnector addThruOutput(String type)
ObservableList<ThruConnector> getThruInputs()
ObservableList<ThruConnector> getThruOutputs()