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 ClassesNested 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
FieldsModifier and TypeFieldDescriptionprivate final com.vaadin.flow.data.binder.Binder<Contact>private com.vaadin.flow.component.orderedlayout.HorizontalLayoutprivate com.vaadin.flow.component.button.Buttonprivate Runnableprivate final PresentationStringConverterprivate com.vaadin.flow.component.button.Buttonprivate com.vaadin.flow.component.textfield.TextFieldprivate com.vaadin.flow.component.textfield.TextFieldprivate AdvancedComboBox<Partner>private final PartnerServiceprivate com.vaadin.flow.component.textfield.TextFieldprivate com.vaadin.flow.component.textfield.TextFieldprivate com.vaadin.flow.component.button.Buttonprivate com.vaadin.flow.component.button.Buttonprivate final ContactService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidcancel()private voidvoiddelete()private voidinit()private voidrestore()voidsave()voidsetCancelCallback(Runnable cancelCallback) voidsetSaveCallback(Consumer<Contact> saveCallback) voidsetTexts()private voidprivate voidprivate voidMethods inherited from class com.vaadin.flow.component.formlayout.FormLayout
add, addFormItem, addFormItem, getColspan, getResponsiveSteps, setColspan, setResponsiveSteps, setResponsiveStepsMethods 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, 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.ClickNotifier
addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods 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, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
service
-
binder
-
saveCallback
-
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
-
partnerService
-
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
-
-
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
-
showSuccessNotification
-
getSaveCallback
-
setSaveCallback
-
getCancelCallback
-
setCancelCallback
-
setTexts
public void setTexts()
-