public class BpmnViewerImpl extends io.jmix.ui.component.impl.AbstractComponent<BpmnViewerJavaScriptComponent> implements BpmnViewer
io.jmix.ui.component.Component.Alignment, io.jmix.ui.component.Component.BelongToFrame, io.jmix.ui.component.Component.Disposable, io.jmix.ui.component.Component.Editable, io.jmix.ui.component.Component.Focusable, io.jmix.ui.component.Component.HasCaption, io.jmix.ui.component.Component.HasDescription, io.jmix.ui.component.Component.HasIcon, io.jmix.ui.component.Component.HasXmlDescriptor, io.jmix.ui.component.Component.Wrapperalignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentNAME| Constructor and Description |
|---|
BpmnViewerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMarker(AddMarkerCmd addMarkerCmd)
Adds a marker to an element (basically a css class).
|
void |
removeMarker(RemoveMarkerCmd removeMarkerCmd)
Removes a marker (css class) from an element.
|
void |
setBpmnXml(java.lang.String bpmnXml,
java.util.function.Consumer<BpmnXmlSetResult> callback)
The callback will be called after the BPMN XML was actually set to the component.
|
void |
setElementColor(SetElementColorCmd setElementColorCmd)
Sets an element color.
|
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStyleName, 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, withUnwrappedCompositionpublic void setBpmnXml(java.lang.String bpmnXml,
java.util.function.Consumer<BpmnXmlSetResult> callback)
BpmnViewerBpmnViewer.setElementColor(io.jmix.bpmui.uicomponent.bpmnviewer.command.SetElementColorCmd) in the callbacksetBpmnXml in interface BpmnViewerpublic void setElementColor(SetElementColorCmd setElementColorCmd)
BpmnViewerUsage example:
bpmnViewer.setElementColor(new SetElementColorCmd(elementId,
"#000", //stroke color
"#c2d5ed" //fill color
));
setElementColor in interface BpmnViewerpublic void addMarker(AddMarkerCmd addMarkerCmd)
BpmnViewerA style for the "highlighted" marker is already defined in the viewer component css file.
addMarker in interface BpmnViewerpublic void removeMarker(RemoveMarkerCmd removeMarkerCmd)
BpmnViewerremoveMarker in interface BpmnViewer