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.Wrapper
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
NAME
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, withUnwrappedComposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public void setBpmnXml(java.lang.String bpmnXml, java.util.function.Consumer<BpmnXmlSetResult> callback)
BpmnViewer
BpmnViewer.setElementColor(io.jmix.bpmui.uicomponent.bpmnviewer.command.SetElementColorCmd)
in the callbacksetBpmnXml
in interface BpmnViewer
public void setElementColor(SetElementColorCmd setElementColorCmd)
BpmnViewer
Usage example:
bpmnViewer.setElementColor(new SetElementColorCmd(elementId, "#000", //stroke color "#c2d5ed" //fill color ));
setElementColor
in interface BpmnViewer
public void addMarker(AddMarkerCmd addMarkerCmd)
BpmnViewer
A style for the "highlighted" marker is already defined in the viewer component css file.
addMarker
in interface BpmnViewer
public void removeMarker(RemoveMarkerCmd removeMarkerCmd)
BpmnViewer
removeMarker
in interface BpmnViewer