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:
-
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 AuthInfoDetailsServiceprotected com.vaadin.flow.component.button.Buttonprotected SoftDeleteFilterstatic final intprotected ColumnToggleButtonprotected ColumnToggleContextMenuprotected com.vaadin.flow.component.button.Buttonprivate final ExperimentalFeaturesprotected List<FilterComponent>protected com.vaadin.flow.component.grid.Grid<UserListDto>private final LoginServiceprivate final PresentationStringConverterprotected com.vaadin.flow.component.button.Buttonprivate final RoleServiceprivate final UserServiceprotected com.vaadin.flow.shared.Registration -
Constructor Summary
ConstructorsConstructorDescriptionUserList(AuthInfoDetailsService authInfoDetailsService, LoginService loginService, RoleService roleService, UserService userService, PresentationStringConverter presentationStringConverter, ExperimentalFeatures experimentalFeatures) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprivate voidaddColumnVisibilityToggleMenu(ColumnToggleButton columnToggleButton) protected voidaddFilterHeader(String... propertyKeys) protected voidaddNewDialog(UserListDto userListDto, String title, boolean writeMode) protected voidadjustActionColumn(com.vaadin.flow.component.grid.Grid<UserListDto> grid, int width) protected voidprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutcreateActionColumn(UserListDto userListDto) protected com.vaadin.flow.component.button.ButtoncreateBlockButton(UserListDto userListDto) protected com.vaadin.flow.component.menubar.MenuBarcreateContextMenuActionColumn(UserListDto userListDto) protected com.vaadin.flow.component.button.ButtoncreateEditButton(UserListDto userListDto) protected com.vaadin.flow.component.button.ButtoncreatePreviewButton(UserListDto userListDto) protected voidprotected voidonAttach(com.vaadin.flow.component.AttachEvent attachEvent) protected voidonDetach(com.vaadin.flow.component.DetachEvent detachEvent) protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>>setBlockAction(UserListDto userListDto) 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>>setEditAction(UserListDto userListDto) protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>>setPreviewAction(UserListDto userListDto) 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
-
loginService
-
userService
-
presentationStringConverter
-
experimentalFeatures
-
columnToggleButton
-
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
-
addNewButton
protected com.vaadin.flow.component.button.Button addNewButton -
addNewDialogTitle
-
filterComponents
-
grid
-
windowResizeListener
protected com.vaadin.flow.shared.Registration windowResizeListener -
BREAKPOINT
public static final int BREAKPOINT- See Also:
-
-
Constructor Details
-
UserList
public UserList(AuthInfoDetailsService authInfoDetailsService, LoginService loginService, RoleService roleService, UserService userService, PresentationStringConverter presentationStringConverter, ExperimentalFeatures experimentalFeatures)
-
-
Method Details
-
configureGrid
protected void configureGrid() -
addFilterHeader
-
updateGridWithFilters
protected void updateGridWithFilters() -
addActionColumn
protected void addActionColumn() -
createActionColumn
protected com.vaadin.flow.component.orderedlayout.HorizontalLayout createActionColumn(UserListDto userListDto) -
createPreviewButton
-
setPreviewAction
protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> setPreviewAction(UserListDto userListDto) -
addNewDialog
-
createEditButton
-
setEditAction
protected Consumer<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> setEditAction(UserListDto userListDto) -
createBlockButton
-
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
-
createContextMenuActionColumn
protected com.vaadin.flow.component.menubar.MenuBar createContextMenuActionColumn(UserListDto userListDto) -
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
-