Class BpmnViewerImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractComponent<BpmnViewerJavaScriptComponent>
io.jmix.bpmui.uicomponent.bpmnviewer.BpmnViewerImpl
- All Implemented Interfaces:
BpmnViewer,AttachNotifier,Component,Component.BelongToFrame,Component.HasCaption,Component.HasDescription,Component.HasIcon,Component.HasXmlDescriptor,Component.Wrapper,HasContextHelp,HasDebugId,HasHtmlCaption,HasHtmlDescription,HasHtmlSanitizer
public class BpmnViewerImpl
extends AbstractComponent<BpmnViewerJavaScriptComponent>
implements BpmnViewer
-
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.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent -
Field Summary
Fields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentFields inherited from interface io.jmix.bpmui.uicomponent.bpmnviewer.BpmnViewer
NAMEFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Constructor Summary
Constructors -
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.voidsetElementColor(SetElementColorCmd setElementColorCmd) Sets an element color.Methods inherited from class io.jmix.ui.component.impl.AbstractComponent
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, withUnwrappedCompositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
BpmnViewerImpl
public BpmnViewerImpl()
-
-
Method Details
-
setBpmnXml
Description copied from interface:BpmnViewerThe callback will be called after the BPMN XML was actually set to the component. Invoke theBpmnViewer.setElementColor(io.jmix.bpmui.uicomponent.bpmnviewer.command.SetElementColorCmd)in the callback- Specified by:
setBpmnXmlin interfaceBpmnViewer
-
setElementColor
Description copied from interface:BpmnViewerSets an element color.Usage example:
bpmnViewer.setElementColor(new SetElementColorCmd(elementId, "#000", //stroke color "#c2d5ed" //fill color ));- Specified by:
setElementColorin interfaceBpmnViewer
-
addMarker
Description copied from interface:BpmnViewerAdds a marker to an element (basically a css class).A style for the "highlighted" marker is already defined in the viewer component css file.
- Specified by:
addMarkerin interfaceBpmnViewer
-
removeMarker
Description copied from interface:BpmnViewerRemoves a marker (css class) from an element.- Specified by:
removeMarkerin interfaceBpmnViewer
-