Interface BpmnViewer
- All Superinterfaces:
com.vaadin.flow.component.HasElement,Serializable
- All Known Implementing Classes:
BpmnViewerImpl
@Deprecated(since="2.8.0",
forRemoval=true)
public interface BpmnViewer
extends com.vaadin.flow.component.HasElement
Deprecated, for removal: This API element is subject to removal in a future version.
Interface for a BPMN viewer component that allows visualization and interaction with BPMN diagrams.
This interface extends
HasElement to integrate with Vaadin Flow.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMarker(AddMarkerCmd addMarkerCmd) Deprecated, for removal: This API element is subject to removal in a future version.Adds a marker to a BPMN element using the specified command.voidaddSelectedElementChangedListener(com.vaadin.flow.component.ComponentEventListener<SelectionChangedEvent> listener) Deprecated, for removal: This API element is subject to removal in a future version.Adds a listener to handle BPMN diagram element selection changes.voidremoveMarker(RemoveMarkerCmd removeMarkerCmd) Deprecated, for removal: This API element is subject to removal in a future version.Removes a marker from a BPMN element using the specified command.voidsetBpmnXml(String bpmnXml, com.vaadin.flow.function.SerializableConsumer<elemental.json.JsonValue> callback) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Sets the color of a BPMN element using the specified command.Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Field Details
-
NAME
Deprecated, for removal: This API element is subject to removal in a future version.The name of the BPMN viewer component.- See Also:
-
-
Method Details
-
setBpmnXml
@Deprecated(since="2.8.0", forRemoval=true) void setBpmnXml(String bpmnXml, com.vaadin.flow.function.SerializableConsumer<elemental.json.JsonValue> callback) Deprecated, for removal: This API element is subject to removal in a future version.Sets the BPMN XML for the viewer component and invokes the callback after the BPMN XML is set.- Parameters:
bpmnXml- The BPMN XML to be set.callback- A callback to be invoked after the BPMN XML is set.
-
setElementColor
Deprecated, for removal: This API element is subject to removal in a future version.Sets the color of a BPMN element using the specified command.Usage example:
bpmnViewer.setElementColor(new SetElementColorCmd(elementId, "#000", //stroke color "#c2d5ed" //fill color ));- Parameters:
cmd- The command to set the element color.
-
addMarker
Deprecated, for removal: This API element is subject to removal in a future version.Adds a marker to a BPMN element using the specified command.A style for the "highlighted" marker is already defined in the viewer component css file.
- Parameters:
addMarkerCmd- The command to add a marker to an element.
-
removeMarker
Deprecated, for removal: This API element is subject to removal in a future version.Removes a marker from a BPMN element using the specified command.- Parameters:
removeMarkerCmd- The command to remove a marker from an element.
-
addSelectedElementChangedListener
void addSelectedElementChangedListener(com.vaadin.flow.component.ComponentEventListener<SelectionChangedEvent> listener) Deprecated, for removal: This API element is subject to removal in a future version.Adds a listener to handle BPMN diagram element selection changes.- Parameters:
listener- The listener to handle selection changes.
-
BpmnViewerImplclass instead