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
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.component.button.Buttonprotected Stringprivate final AuthInfoDetailsServicestatic final intprivate ColumnToggleButtonprotected ColumnToggleContextMenuprotected com.vaadin.flow.component.button.Buttonprotected com.vaadin.flow.component.button.Buttonprotected List<FilterComponent>protected com.vaadin.flow.component.grid.Grid<RoleListDto>protected com.vaadin.flow.component.button.Buttonprivate final RoleServiceprotected com.vaadin.flow.shared.Registration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprivate voidaddColumnVisibilityToggleMenu(ColumnToggleButton columnToggleButton) protected voidaddFilterHeader(String... propertyKeys) protected voidaddNewDialog(RoleListDto roleListDto, String title, boolean writeMode) protected voidadjustActionColumn(com.vaadin.flow.component.grid.Grid<RoleListDto> grid, int width) protected voidprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutcreateActionColumn(RoleListDto roleListDto) protected com.vaadin.flow.component.menubar.MenuBarcreateContextMenuActionColumn(RoleListDto roleListDto) protected com.vaadin.flow.component.button.ButtoncreateDeleteButton(RoleListDto roleListDto) protected com.vaadin.flow.component.button.ButtoncreateEditButton(RoleListDto roleListDto) protected com.vaadin.flow.component.button.ButtoncreatePreviewButton(RoleListDto roleListDto) protected voidprotected voidonAttach(com.vaadin.flow.component.AttachEvent attachEvent) protected voidonDetach(com.vaadin.flow.component.DetachEvent detachEvent) protected voidsetColumnHeader(String propertyKey, String headerText) protected voidsetColumnHeaders(Map<String, String> columns) voidsetColumnToggleItemLabel(String key, String label) voidsetColumnToggleItemLabels(Map<String, String> columns) protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>>setDeleteAction(RoleListDto roleListDto) protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>>setEditAction(RoleListDto roleListDto) protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>>setPreviewAction(RoleListDto roleListDto) protected voidMethods inherited from class com.vaadin.flow.component.orderedlayout.VerticalLayout
addAndExpand, getAlignItems, getAlignSelf, getDefaultHorizontalComponentAlignment, getHorizontalComponentAlignment, setAlignItems, setAlignSelf, setDefaultHorizontalComponentAlignment, setHorizontalComponentAlignment, setPadding, setSpacingMethods 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, 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.orderedlayout.FlexComponent
expand, getFlexGrow, getFlexShrink, getJustifyContentMode, replace, setFlexGrow, setFlexShrink, setJustifyContentModeMethods 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.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOfMethods 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, setClassNameMethods inherited from interface com.vaadin.flow.component.orderedlayout.ThemableLayout
getBoxSizing, getThemeList, isMargin, isPadding, isSpacing, setBoxSizing, setMargin
-
Field Details
-
roleService
-
authInfoDetailsService
-
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
-
addNewDialogTitle
-
filterComponents
-
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
-
updateGridWithFilters
protected void updateGridWithFilters() -
addActionColumn
protected void addActionColumn() -
createActionColumn
protected com.vaadin.flow.component.orderedlayout.HorizontalLayout createActionColumn(RoleListDto roleListDto) -
createPreviewButton
-
setPreviewAction
protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> setPreviewAction(RoleListDto roleListDto) -
addNewDialog
-
createEditButton
-
setEditAction
protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> setEditAction(RoleListDto roleListDto) -
createDeleteButton
-
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
-
createContextMenuActionColumn
protected com.vaadin.flow.component.menubar.MenuBar createContextMenuActionColumn(RoleListDto roleListDto) -
initAddNewButtonToHeader
protected void initAddNewButtonToHeader() -
setColumnHeaders
-
setColumnHeader
-
setColumnToggleItemLabels
-
setColumnToggleItemLabel
-
onAttach
protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent) - Overrides:
onAttachin classcom.vaadin.flow.component.Component
-
onDetach
protected void onDetach(com.vaadin.flow.component.DetachEvent detachEvent) - Overrides:
onDetachin classcom.vaadin.flow.component.Component
-
adjustActionColumn
-
getPageTitle
- Specified by:
getPageTitlein interfacecom.vaadin.flow.router.HasDynamicTitle
-