Interface BpmnViewer
- All Superinterfaces:
com.vaadin.flow.component.HasElement,Serializable
- All Known Implementing Classes:
BpmnViewerImpl
public interface BpmnViewer
extends com.vaadin.flow.component.HasElement
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMarker(AddMarkerCmd addMarkerCmd) Adds a marker to an element (basically a css class).voidremoveMarker(RemoveMarkerCmd removeMarkerCmd) Removes a marker (css class) from an element.voidsetBpmnXml(String bpmnXml, com.vaadin.flow.function.SerializableConsumer<elemental.json.JsonValue> callback) The callback will be called after the BPMN XML was actually set to the component.voidSets an element color.Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
setBpmnXml
void setBpmnXml(String bpmnXml, com.vaadin.flow.function.SerializableConsumer<elemental.json.JsonValue> callback) The callback will be called after the BPMN XML was actually set to the component. Invoke thesetElementColor(io.jmix.bpmflowui.uicomponent.bpmnviewer.command.SetElementColorCmd)in the callback -
setElementColor
Sets an element color.Usage example:
bpmnViewer.setElementColor(new SetElementColorCmd(elementId, "#000", //stroke color "#c2d5ed" //fill color )); -
addMarker
Adds a marker to an element (basically a css class).A style for the "highlighted" marker is already defined in the viewer component css file.
-
removeMarker
Removes a marker (css class) from an element.
-