Package io.graphenee.jbpm.embedded.flow
Class GxFlowUserTaskForm<T>
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.orderedlayout.VerticalLayout
-
- io.graphenee.vaadin.flow.base.GxAbstractEntityForm<T>
-
- io.graphenee.jbpm.embedded.flow.GxFlowUserTaskForm<T>
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.orderedlayout.VerticalLayout>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasOrderedComponents,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.orderedlayout.FlexComponent,com.vaadin.flow.component.orderedlayout.ThemableLayout,Serializable
public abstract class GxFlowUserTaskForm<T> extends GxAbstractEntityForm<T>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGxFlowUserTaskForm.GxTaskActionstatic interfaceGxFlowUserTaskForm.GxTaskActionListener<T>static interfaceGxFlowUserTaskForm.GxUserTaskAssignerstatic interfaceGxFlowUserTaskForm.GxUserTaskHandlerstatic interfaceGxFlowUserTaskForm.GxUserTaskSkipper-
Nested classes/interfaces inherited from class io.graphenee.vaadin.flow.base.GxAbstractEntityForm
GxAbstractEntityForm.EntityFormDelegate<T extends Object>, GxAbstractEntityForm.GxEntityFormEventListener<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLSet<GxFlowUserTaskForm.GxTaskActionListener<T>>listeners
-
Constructor Summary
Constructors Constructor Description GxFlowUserTaskForm(Class<T> entityClass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddTaskActionListener(GxFlowUserTaskForm.GxTaskActionListener<T> listener)protected StringapproveButtonCaption()protected StringcompleteButtonCaption()protected voiddecorateToolbar(com.vaadin.flow.component.HasComponents footer)protected StringformTitle()GxUserTaskgetUserTask()voidinitializeWithTask(GxUserTask userTask)protected abstract booleanisApprovalForm()protected abstract booleanisAssignable()protected voidonApprove(Map<String,Object> taskData, T entity, GxFlowUserTaskForm.GxUserTaskHandler handler)protected voidonAssign(T entity, GxFlowUserTaskForm.GxUserTaskAssigner assigner)protected voidonComplete(Map<String,Object> taskData, T entity, GxFlowUserTaskForm.GxUserTaskHandler handler)protected voidonPostApprove(T entity)protected voidonPostAssign(GxAssignee assignee, T entity)protected voidonPostComplete(T entity)protected voidonPostReject(T entity)protected voidonPostSkip(T entity)protected voidonReject(Map<String,Object> taskData, T entity, GxFlowUserTaskForm.GxUserTaskHandler handler)protected voidonSkip(T entity, GxFlowUserTaskForm.GxUserTaskSkipper skipper)protected voidpreBinding(T entity)protected StringrejectButtonCaption()-
Methods inherited from class io.graphenee.vaadin.flow.base.GxAbstractEntityForm
addTabsToForm, bindFields, closeDialog, customizeSaveButton, decorateForm, defaultTabTitle, dialogHeight, dialogWidth, formTitleProperty, getEntity, getFormComponent, getToolbarComponent, isEditable, isEntityBound, isModeless, onTabChange, postBinding, postBuild, registerListener, setColspan, setDelegate, setDialogAutoClose, setEditable, setEntity, setTabEnabled, shouldFocusFirstFieldOnShow, showInDialog, showInDialog, unregisterListener, validateForm
-
Methods inherited from class com.vaadin.flow.component.orderedlayout.VerticalLayout
addAndExpand, getAlignItems, getAlignSelf, getDefaultHorizontalComponentAlignment, getHorizontalComponentAlignment, setAlignItems, setAlignSelf, setDefaultHorizontalComponentAlignment, setHorizontalComponentAlignment, setPadding, setSpacing
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut
-
Methods inherited from interface com.vaadin.flow.component.orderedlayout.FlexComponent
expand, getFlexGrow, getJustifyContentMode, replace, setFlexGrow, setJustifyContentMode
-
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
-
Methods inherited from interface com.vaadin.flow.component.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOf
-
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull
-
-
-
-
Field Detail
-
L
protected static final org.slf4j.Logger L
-
listeners
public Set<GxFlowUserTaskForm.GxTaskActionListener<T>> listeners
-
-
Method Detail
-
formTitle
protected String formTitle()
- Overrides:
formTitlein classGxAbstractEntityForm<T>
-
initializeWithTask
public void initializeWithTask(GxUserTask userTask)
-
completeButtonCaption
protected String completeButtonCaption()
-
rejectButtonCaption
protected String rejectButtonCaption()
-
approveButtonCaption
protected String approveButtonCaption()
-
decorateToolbar
protected void decorateToolbar(com.vaadin.flow.component.HasComponents footer)
- Overrides:
decorateToolbarin classGxAbstractEntityForm<T>
-
onReject
protected void onReject(Map<String,Object> taskData, T entity, GxFlowUserTaskForm.GxUserTaskHandler handler)
-
onApprove
protected void onApprove(Map<String,Object> taskData, T entity, GxFlowUserTaskForm.GxUserTaskHandler handler)
-
onAssign
protected void onAssign(T entity, GxFlowUserTaskForm.GxUserTaskAssigner assigner)
-
onSkip
protected void onSkip(T entity, GxFlowUserTaskForm.GxUserTaskSkipper skipper)
-
onComplete
protected void onComplete(Map<String,Object> taskData, T entity, GxFlowUserTaskForm.GxUserTaskHandler handler)
-
preBinding
protected void preBinding(T entity)
- Overrides:
preBindingin classGxAbstractEntityForm<T>
-
onPostApprove
protected void onPostApprove(T entity) throws GxCompleteTaskException
- Throws:
GxCompleteTaskException
-
onPostReject
protected void onPostReject(T entity) throws GxCompleteTaskException
- Throws:
GxCompleteTaskException
-
onPostComplete
protected void onPostComplete(T entity) throws GxCompleteTaskException
- Throws:
GxCompleteTaskException
-
onPostAssign
protected void onPostAssign(GxAssignee assignee, T entity) throws GxAssignTaskException
- Throws:
GxAssignTaskException
-
onPostSkip
protected void onPostSkip(T entity) throws GxSkipTaskException
- Throws:
GxSkipTaskException
-
addTaskActionListener
public void addTaskActionListener(GxFlowUserTaskForm.GxTaskActionListener<T> listener)
-
isApprovalForm
protected abstract boolean isApprovalForm()
-
isAssignable
protected abstract boolean isAssignable()
-
getUserTask
public GxUserTask getUserTask()
-
-