public class OutcomesPanelImpl extends io.jmix.ui.component.impl.AbstractComponent<io.jmix.ui.widget.JmixCssActionsLayout> implements OutcomesPanel
OutcomesPanel.Orientation
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
Modifier and Type | Field and Description |
---|---|
protected java.util.List<io.jmix.ui.action.Action> |
actions |
protected java.util.function.Consumer<FormOutcome> |
afterTaskCompletedHandler |
protected java.util.function.Predicate<FormOutcome> |
beforeTaskCompletedPredicate |
protected java.lang.String |
buttonsWidth |
protected io.jmix.ui.UiEventPublisher |
eventPublisher |
protected io.jmix.ui.component.BoxLayout |
layout |
protected io.jmix.core.Messages |
messages |
protected OutcomesPanel.Orientation |
orientation |
protected java.util.List<FormOutcome> |
outcomes |
protected java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> |
processVariablesSupplier |
protected org.flowable.task.api.Task |
task |
protected BpmTaskService |
taskService |
protected io.jmix.ui.UiComponents |
uiComponents |
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
NAME
Constructor and Description |
---|
OutcomesPanelImpl() |
Modifier and Type | Method and Description |
---|---|
protected io.jmix.ui.component.Button |
createCompleteTaskBtn() |
void |
createLayout(org.flowable.task.api.Task task,
java.util.List<FormOutcome> outcomes) |
protected io.jmix.ui.component.Button |
createOutcomeBtn(FormOutcome outcome) |
protected java.lang.String |
evaluateIconValue(FormOutcome outcome) |
java.util.List<io.jmix.ui.action.Action> |
getActions() |
java.util.function.Consumer<FormOutcome> |
getAfterTaskCompletedHandler() |
java.util.function.Predicate<FormOutcome> |
getBeforeTaskCompletedPredicate() |
java.lang.String |
getButtonsWidth() |
io.jmix.ui.component.BoxLayout |
getLayout() |
OutcomesPanel.Orientation |
getOrientation() |
java.util.List<FormOutcome> |
getOutcomes() |
java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> |
getProcessVariablesSupplier() |
org.flowable.task.api.Task |
getTask() |
void |
setAfterTaskCompletedHandler(java.util.function.Consumer<FormOutcome> afterTaskCompletedHandler) |
void |
setBeforeTaskCompletedPredicate(java.util.function.Predicate<FormOutcome> beforeTaskCompletedPredicate) |
void |
setButtonsWidth(java.lang.String buttonsWidth) |
void |
setLayout(io.jmix.ui.component.BoxLayout layout) |
void |
setOrientation(OutcomesPanel.Orientation orientation) |
void |
setProcessVariablesSupplier(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> processVariablesSupplier) |
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
@Autowired protected BpmTaskService taskService
@Autowired protected io.jmix.ui.UiComponents uiComponents
@Autowired protected io.jmix.core.Messages messages
@Autowired protected io.jmix.ui.UiEventPublisher eventPublisher
protected OutcomesPanel.Orientation orientation
protected java.util.List<FormOutcome> outcomes
protected java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> processVariablesSupplier
protected org.flowable.task.api.Task task
protected java.util.function.Consumer<FormOutcome> afterTaskCompletedHandler
protected java.util.function.Predicate<FormOutcome> beforeTaskCompletedPredicate
protected java.util.List<io.jmix.ui.action.Action> actions
protected io.jmix.ui.component.BoxLayout layout
protected java.lang.String buttonsWidth
public void createLayout(org.flowable.task.api.Task task, java.util.List<FormOutcome> outcomes)
createLayout
in interface OutcomesPanel
protected io.jmix.ui.component.Button createOutcomeBtn(FormOutcome outcome)
@Nullable protected java.lang.String evaluateIconValue(FormOutcome outcome)
protected io.jmix.ui.component.Button createCompleteTaskBtn()
public OutcomesPanel.Orientation getOrientation()
getOrientation
in interface OutcomesPanel
public void setOrientation(OutcomesPanel.Orientation orientation)
setOrientation
in interface OutcomesPanel
public java.util.List<FormOutcome> getOutcomes()
getOutcomes
in interface OutcomesPanel
public java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> getProcessVariablesSupplier()
getProcessVariablesSupplier
in interface OutcomesPanel
public void setProcessVariablesSupplier(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> processVariablesSupplier)
setProcessVariablesSupplier
in interface OutcomesPanel
public org.flowable.task.api.Task getTask()
getTask
in interface OutcomesPanel
public java.util.function.Consumer<FormOutcome> getAfterTaskCompletedHandler()
getAfterTaskCompletedHandler
in interface OutcomesPanel
public void setAfterTaskCompletedHandler(java.util.function.Consumer<FormOutcome> afterTaskCompletedHandler)
setAfterTaskCompletedHandler
in interface OutcomesPanel
public java.util.function.Predicate<FormOutcome> getBeforeTaskCompletedPredicate()
getBeforeTaskCompletedPredicate
in interface OutcomesPanel
public void setBeforeTaskCompletedPredicate(java.util.function.Predicate<FormOutcome> beforeTaskCompletedPredicate)
setBeforeTaskCompletedPredicate
in interface OutcomesPanel
public java.util.List<io.jmix.ui.action.Action> getActions()
getActions
in interface OutcomesPanel
public io.jmix.ui.component.BoxLayout getLayout()
getLayout
in interface OutcomesPanel
public void setLayout(io.jmix.ui.component.BoxLayout layout)
public java.lang.String getButtonsWidth()
getButtonsWidth
in interface OutcomesPanel
public void setButtonsWidth(java.lang.String buttonsWidth)
setButtonsWidth
in interface OutcomesPanel