Interface BpmnViewer
- All Superinterfaces:
Component
- All Known Implementing Classes:
BpmnViewerImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper -
Field Summary
FieldsFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
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, Consumer<BpmnXmlSetResult> callback) The callback will be called after the BPMN XML was actually set to the component.voidSets an element color.Methods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
setBpmnXml
The callback will be called after the BPMN XML was actually set to the component. Invoke thesetElementColor(io.jmix.bpmui.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.
-