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:
  • Field Details

  • Constructor Details

    • ProcessDraftSaveDialog

      public ProcessDraftSaveDialog()
  • Method Details

    • getEntity

      @Nullable public ContentStorage getEntity()
      Returns:
      edited draft or null if not set
    • editEntity

      public ProcessDraftSaveDialog editEntity(ContentStorage item)
      Edits provided draft.
      Parameters:
      item - draft to edit
      Returns:
      current instance
    • newEntity

      public ProcessDraftSaveDialog newEntity()
      Creates a new draft for the save dialog.
      Returns:
      current instance
    • withDraftName

      public ProcessDraftSaveDialog withDraftName(@Nullable String draftName)
      Sets the draft name.
      Parameters:
      draftName - draft name
      Returns:
      current instance
    • getSchema

      @Nullable public String getSchema()
      Returns:
      the BPMN XML schema of the edited draft or null if not set
    • withSchema

      public ProcessDraftSaveDialog withSchema(String schema)
      Sets the BPMN XML schema of the edited draft.
      Parameters:
      schema - BPMN XML schema
      Returns:
      current instance
    • onInit

      @Subscribe public void onInit(View.InitEvent event)
    • onBeforeShow

      @Subscribe public void onBeforeShow(View.BeforeShowEvent event)
    • 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

      protected ContentStorage createCopy(ContentStorage source)
    • showSaveNotification

      protected void showSaveNotification(String text)
    • validate

      protected boolean validate()
    • generateCopyName

      protected String generateCopyName(String name)