public class ProcActionsFrame
extends com.haulmont.cuba.gui.components.AbstractFrame
This frame is used for displaying process actions available for the current user. Depending of the process instance associated with the frame, the frame may display buttons that start the process, complete process actions or claim the process task.
The frame must be initialized with the ProcActionsFrame.Initializer instance. Use the initializer() method to get the
instance of the initializer object. After setting all required listeners and predicates you can initialize the frame
in two ways:
ProcDefinition and entity reference using the ProcActionsFrame.Initializer.init(String, Entity)
methodProcInstance object using the ProcActionsFrame.Initializer.init(ProcInstance) methodProcActionsFrame.Initializer.init(String, Entity) and ProcActionsFrame.Initializer.init(ProcInstance) methods for details| Modifier and Type | Class and Description |
|---|---|
class |
ProcActionsFrame.Initializer
Class is used to initialize the frame.
|
com.haulmont.cuba.gui.screen.ScreenFragment.AfterInitEvent, com.haulmont.cuba.gui.screen.ScreenFragment.InitEventcom.haulmont.cuba.gui.components.Frame.MessageMode, com.haulmont.cuba.gui.components.Frame.MessageType, com.haulmont.cuba.gui.components.Frame.NotificationType, com.haulmont.cuba.gui.components.Frame.Wrappercom.haulmont.cuba.gui.components.ExpandingLayout.ExpandDirectioncom.haulmont.cuba.gui.components.Component.Alignment, com.haulmont.cuba.gui.components.Component.BelongToFrame, com.haulmont.cuba.gui.components.Component.Disposable, com.haulmont.cuba.gui.components.Component.Editable, com.haulmont.cuba.gui.components.Component.Focusable, com.haulmont.cuba.gui.components.Component.HasCaption, com.haulmont.cuba.gui.components.Component.HasDescription, com.haulmont.cuba.gui.components.Component.HasIcon, com.haulmont.cuba.gui.components.Component.HasXmlDescriptor, com.haulmont.cuba.gui.components.Component.OptionsStyleProvider| Constructor and Description |
|---|
ProcActionsFrame() |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionButton(com.haulmont.cuba.gui.components.Button button)
Method adds a button to the end of the action buttons box.
|
CancelProcessAction |
getCancelProcessAction() |
ClaimProcTaskAction |
getClaimProcTaskAction() |
java.util.List<CompleteProcTaskAction> |
getCompleteProcTaskActions() |
ProcInstance |
getProcInstance() |
StartProcessAction |
getStartProcessAction() |
ProcActionsFrame.Initializer |
initializer()
Returns a new instance of frame initializer
|
add, add, addAction, addAction, addStyleName, dispose, expand, expand, getAction, getActions, getAlignment, getCaption, getCompanion, getComponent, getComponent, getComponent, getComponents, getComposition, getContext, getDescription, getDsContext, getExpandDirection, getExpandRatio, getFrame, getFrameOwner, getHeight, getHeightSizeUnit, getIcon, getMargin, getMessagesPack, getOwnComponent, getOwnComponents, getOwnComponentsStream, getParent, getSpacing, getStyleName, getWidth, getWidthSizeUnit, getWindowManager, getWrappedFrame, indexOf, init, isEnabled, isEnabledRecursive, isExpanded, isResponsive, isValid, isVisible, isVisibleRecursive, remove, removeAction, removeAction, removeAll, removeAllActions, removeStyleName, resetExpanded, setAlignment, setCaption, setCompanion, setDescription, setDsContext, setEnabled, setExpandRatio, setFrame, setHeight, setIcon, setIconFromSet, setId, setMargin, setMessagesPack, setParent, setResponsive, setSpacing, setStyleName, setVisible, setWidth, setWrappedFrame, showValidationErrors, unwrap, unwrapComposition, validate, validate, validateAllgetFragment, getHostController, getId, initequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetXmlDescriptor, setXmlDescriptorgetActionNN, getSubPartadd, focusFirstComponent, getComponentNN, removegetHeightUnits, getId, getWidthUnits, isEnabledItself, isVisibleItself, requestFocus, setHeightAuto, setHeightFull, setSizeAuto, setSizeFull, setWidthAuto, setWidthFullopenEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPage@Nullable public StartProcessAction getStartProcessAction()
public java.util.List<CompleteProcTaskAction> getCompleteProcTaskActions()
@Nullable public ClaimProcTaskAction getClaimProcTaskAction()
@Nullable public CancelProcessAction getCancelProcessAction()
public void addActionButton(com.haulmont.cuba.gui.components.Button button)
public ProcActionsFrame.Initializer initializer()
public ProcInstance getProcInstance()