Class EditContactForm

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.formlayout.FormLayout
hu.rts.mike.example.dev.crm.view.editcontact.EditContactForm
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.formlayout.FormLayout>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable

class EditContactForm extends com.vaadin.flow.component.formlayout.FormLayout
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static enum 
     

    Nested classes/interfaces inherited from class com.vaadin.flow.component.formlayout.FormLayout

    com.vaadin.flow.component.formlayout.FormLayout.FormItem, com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final com.vaadin.flow.data.binder.Binder<Contact>
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.button.Button
     
    private Runnable
     
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.textfield.TextField
     
    private com.vaadin.flow.component.textfield.TextField
     
     
    private final PartnerService
     
    private com.vaadin.flow.component.textfield.TextField
     
    private com.vaadin.flow.component.textfield.TextField
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.button.Button
     
    private Consumer<Contact>
     
    private final ContactService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
     
    void
     
    private void
     
    void
     
     
     
    private void
     
    private void
     
    void
     
    void
    setCancelCallback(Runnable cancelCallback)
     
    void
     
    void
     
    private void
     
    private void
     
    private void
     

    Methods inherited from class com.vaadin.flow.component.formlayout.FormLayout

    add, addFormItem, addFormItem, getColspan, getResponsiveSteps, setColspan, setResponsiveSteps, setResponsiveSteps

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, 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.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.ClickNotifier

    addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasComponents

    add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAll

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.HasSize

    getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Field Details

    • service

      private final ContactService service
    • binder

      private final com.vaadin.flow.data.binder.Binder<Contact> binder
    • saveCallback

      private Consumer<Contact> saveCallback
    • cancelCallback

      private Runnable cancelCallback
    • buttonContainer

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout buttonContainer
    • nameInput

      private com.vaadin.flow.component.textfield.TextField nameInput
    • emailInput

      private com.vaadin.flow.component.textfield.TextField emailInput
    • phoneInput

      private com.vaadin.flow.component.textfield.TextField phoneInput
    • positionInput

      private com.vaadin.flow.component.textfield.TextField positionInput
    • partnerInput

      private AdvancedComboBox<Partner> partnerInput
    • partnerService

      private final PartnerService partnerService
    • converter

      private final PresentationStringConverter converter
    • saveButton

      private com.vaadin.flow.component.button.Button saveButton
    • cancelButton

      private com.vaadin.flow.component.button.Button cancelButton
    • deleteButton

      private com.vaadin.flow.component.button.Button deleteButton
    • restoreButton

      private com.vaadin.flow.component.button.Button restoreButton
  • Constructor Details

    • EditContactForm

      public EditContactForm(Integer rootId)
  • Method Details

    • init

      private void init()
    • customizeFields

      private void customizeFields()
    • updateButtonContainer

      private void updateButtonContainer()
    • bindFields

      private void bindFields()
    • save

      public void save()
    • cancel

      public void cancel()
    • delete

      public void delete()
    • restore

      private void restore()
    • showFailedNotification

      private void showFailedNotification(EditContactForm.NotificationType type)
    • showSuccessNotification

      private void showSuccessNotification(EditContactForm.NotificationType type)
    • getSaveCallback

      public Consumer<Contact> getSaveCallback()
    • setSaveCallback

      public void setSaveCallback(Consumer<Contact> saveCallback)
    • getCancelCallback

      public Runnable getCancelCallback()
    • setCancelCallback

      public void setCancelCallback(Runnable cancelCallback)
    • setTexts

      public void setTexts()