Class UserList

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.orderedlayout.VerticalLayout
hu.rts.mike.example.dev.crm.view.user.UserList
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.orderedlayout.VerticalLayout>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasOrderedComponents, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.orderedlayout.FlexComponent, com.vaadin.flow.component.orderedlayout.ThemableLayout, com.vaadin.flow.router.HasDynamicTitle, Serializable

@Route(value="/user-list", layout=MainLayout.class) @RolesAllowed("READ_USER") public class UserList extends com.vaadin.flow.component.orderedlayout.VerticalLayout implements com.vaadin.flow.router.HasDynamicTitle
See Also:
  • Field Details

    • roleService

      private final RoleService roleService
    • authInfoDetailsService

      private final AuthInfoDetailsService authInfoDetailsService
    • loginService

      private final LoginService loginService
    • userService

      private final UserService userService
    • presentationStringConverter

      private final PresentationStringConverter presentationStringConverter
    • experimentalFeatures

      private final ExperimentalFeatures experimentalFeatures
    • columnToggleButton

      protected ColumnToggleButton columnToggleButton
    • columnToggleContextMenu

      protected ColumnToggleContextMenu columnToggleContextMenu
    • previewButton

      protected com.vaadin.flow.component.button.Button previewButton
    • editButton

      protected com.vaadin.flow.component.button.Button editButton
    • blockButton

      protected com.vaadin.flow.component.button.Button blockButton
    • blockedFilter

      protected SoftDeleteFilter blockedFilter
    • addNewButton

      protected com.vaadin.flow.component.button.Button addNewButton
    • addNewDialogTitle

      protected String addNewDialogTitle
    • filterComponents

      protected List<FilterComponent> filterComponents
    • grid

      protected com.vaadin.flow.component.grid.Grid<UserListDto> grid
    • windowResizeListener

      protected com.vaadin.flow.shared.Registration windowResizeListener
    • BREAKPOINT

      public static final int BREAKPOINT
      See Also:
  • Constructor Details

  • Method Details

    • configureGrid

      protected void configureGrid()
    • addFilterHeader

      protected void addFilterHeader(String... propertyKeys)
    • updateGridWithFilters

      protected void updateGridWithFilters()
    • addActionColumn

      protected void addActionColumn()
    • createActionColumn

      protected com.vaadin.flow.component.orderedlayout.HorizontalLayout createActionColumn(UserListDto userListDto)
    • createPreviewButton

      protected com.vaadin.flow.component.button.Button createPreviewButton(UserListDto userListDto)
    • setPreviewAction

      protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> setPreviewAction(UserListDto userListDto)
    • addNewDialog

      protected void addNewDialog(UserListDto userListDto, String title, boolean writeMode)
    • createEditButton

      protected com.vaadin.flow.component.button.Button createEditButton(UserListDto userListDto)
    • setEditAction

      protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> setEditAction(UserListDto userListDto)
    • createBlockButton

      protected com.vaadin.flow.component.button.Button createBlockButton(UserListDto userListDto)
    • setBlockAction

      protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> setBlockAction(UserListDto userListDto)
    • addActionColumnHeader

      protected com.vaadin.flow.component.orderedlayout.HorizontalLayout addActionColumnHeader()
    • addColumnVisibilityToggleMenu

      private void addColumnVisibilityToggleMenu(ColumnToggleButton columnToggleButton)
    • createContextMenuActionColumn

      protected com.vaadin.flow.component.menubar.MenuBar createContextMenuActionColumn(UserListDto userListDto)
    • initAddNewButtonToHeader

      protected void initAddNewButtonToHeader()
    • setColumnHeaders

      protected void setColumnHeaders(Map<String,String> columns)
    • setColumnHeader

      protected void setColumnHeader(String propertyKey, String headerText)
    • setColumnToggleItemLabels

      public void setColumnToggleItemLabels(Map<String,String> columns)
    • setColumnToggleItemLabel

      public void setColumnToggleItemLabel(String key, String label)
    • onAttach

      protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
      Overrides:
      onAttach in class com.vaadin.flow.component.Component
    • onDetach

      protected void onDetach(com.vaadin.flow.component.DetachEvent detachEvent)
      Overrides:
      onDetach in class com.vaadin.flow.component.Component
    • adjustActionColumn

      protected void adjustActionColumn(com.vaadin.flow.component.grid.Grid<UserListDto> grid, int width)
    • getPageTitle

      public String getPageTitle()
      Specified by:
      getPageTitle in interface com.vaadin.flow.router.HasDynamicTitle