Class UserForm

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.formlayout.FormLayout
hu.rts.mike.example.dev.crm.view.user.UserForm
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

@RolesAllowed("READ_USER") public class UserForm extends com.vaadin.flow.component.formlayout.FormLayout
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    (package 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
    protected com.vaadin.flow.data.binder.Binder<UserListDto>
     
    protected com.vaadin.flow.component.checkbox.Checkbox
     
    protected com.vaadin.flow.component.textfield.TextField
     
    protected Runnable
     
    protected com.vaadin.flow.component.button.Button
     
    protected com.vaadin.flow.component.textfield.TextField
     
    protected com.vaadin.flow.component.textfield.TextField
     
    private final LoginService
     
     
    protected com.vaadin.flow.component.textfield.PasswordField
     
    protected com.vaadin.flow.component.textfield.PasswordField
     
     
    protected List<RoleDto>
     
    private final RoleService
     
    protected com.vaadin.flow.component.combobox.MultiSelectComboBox<RoleDto>
     
    protected com.vaadin.flow.component.button.Button
     
     
    protected UserListDto
     
    protected com.vaadin.flow.component.textfield.TextField
     
    private final UserService
     
    protected boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    UserForm(RoleService roleService, LoginService loginService, AuthInfoDetailsService authInfoDetailsService, UserService userService, PresentationStringConverter presentationStringConverter, boolean writeMode, UserListDto userListDto)
     
    UserForm(RoleService roleService, LoginService loginService, UserService userService, PresentationStringConverter presentationStringConverter, boolean writeMode)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
     
     
    protected void
     
    boolean
     
    void
    setCancelCallback(Runnable cancelCallback)
     
    void
     
    void
     
    void
    setWriteMode(boolean writeMode)
     

    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

    • roleService

      private final RoleService roleService
    • loginService

      private final LoginService loginService
    • userService

      private final UserService userService
    • presentationStringConverter

      private final PresentationStringConverter presentationStringConverter
    • writeMode

      protected boolean writeMode
    • operation

      protected UserForm.Operation operation
    • binder

      protected com.vaadin.flow.data.binder.Binder<UserListDto> binder
    • userListDto

      protected UserListDto userListDto
    • username

      protected com.vaadin.flow.component.textfield.TextField username
    • password1

      protected com.vaadin.flow.component.textfield.PasswordField password1
    • password2

      protected com.vaadin.flow.component.textfield.PasswordField password2
    • email

      protected com.vaadin.flow.component.textfield.TextField email
    • blockedDateTime

      protected com.vaadin.flow.component.textfield.TextField blockedDateTime
    • blockedCheck

      protected com.vaadin.flow.component.checkbox.Checkbox blockedCheck
    • displayName

      protected com.vaadin.flow.component.textfield.TextField displayName
    • roles

      protected List<RoleDto> roles
    • rolesList

      protected com.vaadin.flow.component.combobox.MultiSelectComboBox<RoleDto> rolesList
    • save

      protected com.vaadin.flow.component.button.Button save
    • close

      protected com.vaadin.flow.component.button.Button close
    • saveCallback

      protected Consumer<UserListDto> saveCallback
    • cancelCallback

      protected Runnable cancelCallback
  • Constructor Details

  • Method Details

    • init

      protected void init()
    • createButtonsLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout createButtonsLayout()
    • getSaveCallback

      public Consumer<UserListDto> getSaveCallback()
    • setSaveCallback

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

      public Runnable getCancelCallback()
    • setCancelCallback

      public void setCancelCallback(Runnable cancelCallback)
    • isWriteMode

      public boolean isWriteMode()
    • setWriteMode

      public void setWriteMode(boolean writeMode)
    • setTexts

      public void setTexts()