Class ProcessDraftSaveDialog
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.bpmflowui.view.processdraft.ProcessDraftSaveDialog
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,com.vaadin.flow.router.AfterNavigationObserver,com.vaadin.flow.router.BeforeEnterObserver,com.vaadin.flow.router.BeforeLeaveObserver,com.vaadin.flow.router.HasDynamicTitle,com.vaadin.flow.router.internal.AfterNavigationHandler,com.vaadin.flow.router.internal.BeforeEnterHandler,com.vaadin.flow.router.internal.BeforeLeaveHandler,FacetOwner,FragmentOwner,Serializable
@DialogMode(width="35em",
height="AUTO")
@ViewController("bpm_ProcessDraftSaveDialog")
@ViewDescriptor("process-draft-save-dialog.xml")
public class ProcessDraftSaveDialog
extends StandardView
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.PostReadyEvent, View.QueryParametersChangeEvent, View.ReadyEvent, View.RestoreComponentsStateEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InstanceContainer<ContentStorage>protected ContentStorageSupportprotected CurrentUserSubstitutionprotected DataManagerprotected Stringprotected MessageBundleprotected Messagesprotected TypedTextField<String>protected Notificationsstatic final CloseActionprotected JmixButtonprotected Stringprotected UiAsyncTasksprotected ViewValidation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected ContentStoragecreateCopy(ContentStorage source) editEntity(ContentStorage item) Edits provided draft.protected StringgenerateCopyName(String name) Creates a new draft for the save dialog.voidonBeforeShow(View.BeforeShowEvent event) voidonCancelButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) voidonInit(View.InitEvent event) voidonNameFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.textfield.TextField, String> event) voidonSaveAsCopyButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) voidonSaveButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) protected voidshowSaveNotification(String text) protected booleanvalidate()withDraftName(String draftName) Sets the draft name.withSchema(String schema) Sets the BPMN XML schema of the edited draft.Methods inherited from class io.jmix.flowui.view.StandardView
initContentMethods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addApplicationListeners, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, addRestoreComponentsStateEventListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, configureDialogWindowFooter, configureDialogWindowHeader, getApplicationContext, getEventBus, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onAttachInternal, onDetach, onDetachInternal, processBeforeEnterInternal, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setMeterRegistry, setPageTitle, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
SAVE_AS_COPY_CLOSE_ACTION
-
uiAsyncTasks
-
contentStorageSupport
-
dataManager
-
currentUserSubstitution
-
notifications
-
viewValidation
-
messages
-
messageBundle
-
contentStorageDc
-
nameField
-
saveAsCopyButton
-
schema
-
draftName
-
-
Constructor Details
-
ProcessDraftSaveDialog
public ProcessDraftSaveDialog()
-
-
Method Details
-
getEntity
- Returns:
- edited draft or
nullif not set
-
editEntity
Edits provided draft.- Parameters:
item- draft to edit- Returns:
- current instance
-
newEntity
Creates a new draft for the save dialog.- Returns:
- current instance
-
withDraftName
Sets the draft name.- Parameters:
draftName- draft name- Returns:
- current instance
-
getSchema
- Returns:
- the BPMN XML schema of the edited draft or
nullif not set
-
withSchema
Sets the BPMN XML schema of the edited draft.- Parameters:
schema- BPMN XML schema- Returns:
- current instance
-
onInit
-
onBeforeShow
-
onNameFieldComponentValueChange
@Subscribe("nameField") public void onNameFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.textfield.TextField, String> event) -
onSaveButtonClick
@Subscribe("saveButton") public void onSaveButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) -
onSaveAsCopyButtonClick
@Subscribe("saveAsCopyButton") public void onSaveAsCopyButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) -
onCancelButtonClick
@Subscribe("cancelButton") public void onCancelButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) -
attachNameFieldValueChangeListener
protected void attachNameFieldValueChangeListener() -
createCopy
-
showSaveNotification
-
validate
protected boolean validate() -
generateCopyName
-