public class ThruConnectorImpl extends Object implements ThruConnector
Connector in
VWorkflows| Type | Property and Description |
|---|---|
ObjectProperty<Integer> |
maxNumberOfConnections
Returns the property of the maximum allowed number of connections.
|
ObjectProperty<ValueObject> |
valueObject
Returns the value object property (can be used to get notified if the value object changes).
|
ReadOnlyProperty<VisualizationRequest> |
visualizationRequest
Returns the visualization request property of this model.
|
maxNumberOfConnections, valueObjectvisualizationRequest| Constructor and Description |
|---|
ThruConnectorImpl(VNode node,
String type,
String localId,
boolean input,
VNode innerNode,
Connector innerConnector) |
| Modifier and Type | Method and Description |
|---|---|
void |
addClickEventListener(EventHandler<ClickEvent> handler)
Adds the specified click-event listener to this connector.
|
void |
addConnectionEventListener(EventHandler<ConnectionEvent> handler)
Adds the specified connection-event listener to this connector.
|
void |
click(MouseButton btn,
Object event)
Perform a mouse click on this connector.
|
List<EventHandler<ClickEvent>> |
getClickEventHandlers() |
List<EventHandler<ConnectionEvent>> |
getConnectionEventHandlers() |
String |
getId()
Returns the global id of this connector.
|
Connector |
getInnerConnector()
Returns the inner connector.
|
VNode |
getInnerNode()
Returns the inner connector node.
|
String |
getLocalId()
Returns the local id of this connector.
|
int |
getMaxNumberOfConnections()
Gets the value of the property maxNumberOfConnections.
|
VNode |
getNode()
Returns the parent node of this connector.
|
String |
getType()
Returns the conneciton type of this connector.
|
ValueObject |
getValueObject()
Gets the value of the property valueObject.
|
VisualizationRequest |
getVisualizationRequest()
Returns the visualization request of this model.
|
boolean |
isInput()
Determines whether this connector is an input connector.
|
boolean |
isOutput()
Determines whether this connector is an output connector.
|
boolean |
isVisualizationRequestInitialized()
Determines whether the visualization request is already initialized.
|
ObjectProperty<Integer> |
maxNumberOfConnectionsProperty()
Returns the property of the maximum allowed number of connections.
|
void |
removeClickEventListener(EventHandler<ClickEvent> handler)
Removes the specified click-event listener from this connector.
|
void |
removeConnectionEventListener(EventHandler<ConnectionEvent> handler)
Removes the specified connection-event listener from this connector.
|
void |
setLocalId(String id)
Defines the local id of this connector.
|
void |
setMaxNumberOfConnections(int numConnections)
Sets the value of the property maxNumberOfConnections.
|
void |
setValueObject(ValueObject vObj)
Sets the value of the property valueObject.
|
void |
setVisualizationRequest(VisualizationRequest vReq)
Defines the visualization request for this model.
|
ObjectProperty<ValueObject> |
valueObjectProperty()
Returns the value object property (can be used to get notified if the value object changes).
|
ReadOnlyProperty<VisualizationRequest> |
visualizationRequestProperty()
Returns the visualization request property of this model.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddClickEventListener, addConnectionEventListener, click, getId, getLocalId, getMaxNumberOfConnections, getNode, getType, getValueObject, isInput, isOutput, maxNumberOfConnectionsProperty, removeClickEventListener, removeConnectionEventListener, setLocalId, setMaxNumberOfConnections, setValueObject, valueObjectPropertygetVisualizationRequest, isVisualizationRequestInitialized, setVisualizationRequest, visualizationRequestPropertypublic VNode getInnerNode()
ThruConnectorgetInnerNode in interface ThruConnectorpublic Connector getInnerConnector()
ThruConnectorgetInnerConnector in interface ThruConnectorpublic String getType()
Connectorpublic String getId()
Connectorpublic String getLocalId()
ConnectorgetLocalId in interface Connectorpublic void setLocalId(String id)
ConnectorsetLocalId in interface Connectorid - the id to setpublic VNode getNode()
Connectorpublic VisualizationRequest getVisualizationRequest()
ModelgetVisualizationRequest in interface Modelpublic void setVisualizationRequest(VisualizationRequest vReq)
ModelsetVisualizationRequest in interface ModelvReq - the vReq to setpublic ReadOnlyProperty<VisualizationRequest> visualizationRequestProperty()
ModelvisualizationRequestProperty in interface ModelgetVisualizationRequest(),
setVisualizationRequest(VisualizationRequest)public boolean isInput()
Connectorpublic boolean isOutput()
Connectorpublic final void setValueObject(ValueObject vObj)
setValueObject in interface ConnectorvObj - value object to setpublic ValueObject getValueObject()
getValueObject in interface Connectornull if no value object has been
definedpublic ObjectProperty<ValueObject> valueObjectProperty()
ConnectorvalueObjectProperty in interface ConnectorgetValueObject(),
setValueObject(ValueObject)public void addConnectionEventListener(EventHandler<ConnectionEvent> handler)
ConnectoraddConnectionEventListener in interface Connectorhandler - the listener to addpublic void removeConnectionEventListener(EventHandler<ConnectionEvent> handler)
ConnectorremoveConnectionEventListener in interface Connectorhandler - the listener to removepublic List<EventHandler<ConnectionEvent>> getConnectionEventHandlers()
public void addClickEventListener(EventHandler<ClickEvent> handler)
ConnectoraddClickEventListener in interface Connectorhandler - the listener to addpublic void removeClickEventListener(EventHandler<ClickEvent> handler)
ConnectorremoveClickEventListener in interface Connectorhandler - the listener to removepublic List<EventHandler<ClickEvent>> getClickEventHandlers()
public void click(MouseButton btn, Object event)
Connectorpublic boolean isVisualizationRequestInitialized()
ModelModel.getVisualizationRequest() can cause
initialization.isVisualizationRequestInitialized in interface Modeltrue if the visualization request is already
initializedpublic void setMaxNumberOfConnections(int numConnections)
setMaxNumberOfConnections in interface ConnectornumConnections - maximum allowed number of connections ([0,MAX_INT])public int getMaxNumberOfConnections()
getMaxNumberOfConnections in interface Connector[0,MAX_INT])public ObjectProperty<Integer> maxNumberOfConnectionsProperty()
ConnectormaxNumberOfConnectionsProperty in interface ConnectorgetMaxNumberOfConnections(),
setMaxNumberOfConnections(int)