Class RoleList

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.orderedlayout.VerticalLayout
hu.rts.mike.example.dev.crm.view.role.RoleList
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="/role-list", layout=MainLayout.class) @RolesAllowed("READ_ROLE") public class RoleList extends com.vaadin.flow.component.orderedlayout.VerticalLayout implements com.vaadin.flow.router.HasDynamicTitle
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.orderedlayout.FlexComponent

    com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment, com.vaadin.flow.component.orderedlayout.FlexComponent.JustifyContentMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.vaadin.flow.component.button.Button
     
    protected String
     
     
    static final int
     
     
     
    protected com.vaadin.flow.component.button.Button
     
    protected com.vaadin.flow.component.button.Button
     
     
    protected com.vaadin.flow.component.grid.Grid<RoleListDto>
     
    protected com.vaadin.flow.component.button.Button
     
    private final RoleService
     
    protected com.vaadin.flow.shared.Registration
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private void
     
    protected void
    addFilterHeader(String... propertyKeys)
     
    protected void
    addNewDialog(RoleListDto roleListDto, String title, boolean writeMode)
     
    protected void
    adjustActionColumn(com.vaadin.flow.component.grid.Grid<RoleListDto> grid, int width)
     
    protected void
     
    protected com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    protected com.vaadin.flow.component.menubar.MenuBar
     
    protected com.vaadin.flow.component.button.Button
     
    protected com.vaadin.flow.component.button.Button
     
    protected com.vaadin.flow.component.button.Button
     
     
    protected void
     
    protected void
    onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
     
    protected void
    onDetach(com.vaadin.flow.component.DetachEvent detachEvent)
     
    protected void
    setColumnHeader(String propertyKey, String headerText)
     
    protected void
     
    void
     
    void
     
    protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>>
     
    protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>>
     
    protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>>
     
    protected void
     

    Methods inherited from class com.vaadin.flow.component.orderedlayout.VerticalLayout

    addAndExpand, getAlignItems, getAlignSelf, getDefaultHorizontalComponentAlignment, getHorizontalComponentAlignment, setAlignItems, setAlignSelf, setDefaultHorizontalComponentAlignment, setHorizontalComponentAlignment, setPadding, setSpacing

    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, 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.orderedlayout.FlexComponent

    expand, getFlexGrow, getFlexShrink, getJustifyContentMode, replace, setFlexGrow, setFlexShrink, setJustifyContentMode

    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.HasOrderedComponents

    getChildren, getComponentAt, getComponentCount, indexOf

    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

    Methods inherited from interface com.vaadin.flow.component.orderedlayout.ThemableLayout

    getBoxSizing, getThemeList, isMargin, isPadding, isSpacing, setBoxSizing, setMargin
  • Field Details

    • roleService

      private final RoleService roleService
    • authInfoDetailsService

      private final AuthInfoDetailsService authInfoDetailsService
    • columnToggleContextMenu

      protected ColumnToggleContextMenu columnToggleContextMenu
    • previewButton

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

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

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

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

      private ColumnToggleButton columnToggleButton
    • addNewDialogTitle

      protected String addNewDialogTitle
    • filterComponents

      protected List<FilterComponent> filterComponents
    • grid

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

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

      public static final int BREAKPOINT
      See Also:
  • Constructor Details

    • RoleList

      public RoleList()
  • 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(RoleListDto roleListDto)
    • createPreviewButton

      protected com.vaadin.flow.component.button.Button createPreviewButton(RoleListDto roleListDto)
    • setPreviewAction

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

      protected void addNewDialog(RoleListDto roleListDto, String title, boolean writeMode)
    • createEditButton

      protected com.vaadin.flow.component.button.Button createEditButton(RoleListDto roleListDto)
    • setEditAction

      protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> setEditAction(RoleListDto roleListDto)
    • createDeleteButton

      protected com.vaadin.flow.component.button.Button createDeleteButton(RoleListDto roleListDto)
    • setDeleteAction

      protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> setDeleteAction(RoleListDto roleListDto)
    • addActionColumnHeader

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

      private void addColumnVisibilityToggleMenu(ColumnToggleButton columnToggleButton)
    • createContextMenuActionColumn

      protected com.vaadin.flow.component.menubar.MenuBar createContextMenuActionColumn(RoleListDto roleListDto)
    • 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<RoleListDto> grid, int width)
    • getPageTitle

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