Class CommunicationChannelsTable
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.HtmlComponent
com.vaadin.flow.component.HtmlContainer
com.vaadin.flow.component.html.Div
hu.rts.mike.example.dev.crm.view.communicationchannels.CommunicationChannelsTable
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.html.Div>,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.HasText,Serializable
class CommunicationChannelsTable
extends com.vaadin.flow.component.html.Div
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasText
com.vaadin.flow.component.HasText.WhiteSpace -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AuthInfoDetailsServiceprivate String[]private String[]private ColumnToggleContextMenuprivate final PresentationStringConverterprivate final ExperimentalFeaturesprivate final List<FilterComponent>private final com.vaadin.flow.component.grid.Grid<CommunicationChannel>private final intprivate com.vaadin.flow.shared.Registrationprivate final CommunicationChannelServiceprivate com.vaadin.flow.component.html.H3 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidaddActionColumnHeader(com.vaadin.flow.component.grid.HeaderRow columnFilterHeaderRow) private voidprivate voidaddColumnFilters(com.vaadin.flow.component.grid.HeaderRow columnFilterHeaderRow, String... propertyKeys) private voidaddColumnRenderer(String propertyKey, com.vaadin.flow.data.renderer.Renderer<CommunicationChannel> renderer) private voidprivate voidaddColumnVisibilityMenuItems(List<com.vaadin.flow.component.grid.Grid.Column<CommunicationChannel>> columns) private voidprivate voidprivate voidadjustActionColumn(int width) private voidprivate voidprivate com.vaadin.flow.component.orderedlayout.HorizontalLayoutprivate voidcreateAddNewButton(com.vaadin.flow.component.orderedlayout.HorizontalLayout topHeaderLayout) private com.vaadin.flow.component.menubar.MenuBarprivate com.vaadin.flow.component.button.Buttonprivate com.vaadin.flow.component.button.ButtoncreateEditButton(CommunicationChannel entity) private voiddeleteAction(CommunicationChannel entity) private voideditAction(CommunicationChannel entity) private voidhandleColumnReorder(com.vaadin.flow.component.grid.ColumnReorderEvent<CommunicationChannel> event) private voidprotected voidonAttach(com.vaadin.flow.component.AttachEvent attachEvent) protected voidonDetach(com.vaadin.flow.component.DetachEvent detachEvent) private Stringprivate StringrenderNameColumn(CommunicationChannel entity) private voidprivate voidprivate voidprivate voidprivate voidupdateColumnOrder(List<com.vaadin.flow.component.grid.Grid.Column<CommunicationChannel>> columns) private voidprivate voidMethods inherited from class com.vaadin.flow.component.HtmlComponent
getTitle, setTitleMethods 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.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, indexOf, replaceMethods 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.HasText
getText, getWhiteSpace, setText, setWhiteSpace
-
Field Details
-
RESIZE_CHANGE_WIDTH
private final int RESIZE_CHANGE_WIDTH- See Also:
-
authInfoDetailsService
-
converter
-
service
-
experimentalFeatures
-
grid
-
filterComponents
-
tableHeader
private com.vaadin.flow.component.html.H3 tableHeader -
columnVisibilityMenu
-
resizeListener
private com.vaadin.flow.shared.Registration resizeListener -
columns
-
columnOrder
-
columnHeaderTexts
-
-
Constructor Details
-
CommunicationChannelsTable
public CommunicationChannelsTable()
-
-
Method Details
-
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
-
loadHeaderTexts
private void loadHeaderTexts() -
adjustActionColumn
private void adjustActionColumn(int width) -
updateColumnHeaders
private void updateColumnHeaders() -
updateColumnVisibilityMenu
private void updateColumnVisibilityMenu() -
configGrid
private void configGrid() -
addColumnFilterHeader
private void addColumnFilterHeader() -
addColumnFilters
private void addColumnFilters(com.vaadin.flow.component.grid.HeaderRow columnFilterHeaderRow, String... propertyKeys) -
addColumns
private void addColumns() -
addColumnRenderer
private void addColumnRenderer(String propertyKey, com.vaadin.flow.data.renderer.Renderer<CommunicationChannel> renderer) -
renderNameColumn
-
updateColumnOrder
private void updateColumnOrder(List<com.vaadin.flow.component.grid.Grid.Column<CommunicationChannel>> columns) -
setColumnOrder
private void setColumnOrder() -
addActionColumn
private void addActionColumn() -
addActionColumnHeader
private void addActionColumnHeader(com.vaadin.flow.component.grid.HeaderRow columnFilterHeaderRow) -
handleColumnReorder
private void handleColumnReorder(com.vaadin.flow.component.grid.ColumnReorderEvent<CommunicationChannel> event) -
addColumnVisibilityMenuItems
private void addColumnVisibilityMenuItems(List<com.vaadin.flow.component.grid.Grid.Column<CommunicationChannel>> columns) -
addTopHeader
private void addTopHeader() -
addHeading
private void addHeading() -
renderHeading
-
createAddNewButton
private void createAddNewButton(com.vaadin.flow.component.orderedlayout.HorizontalLayout topHeaderLayout) -
createActionColumn
private com.vaadin.flow.component.orderedlayout.HorizontalLayout createActionColumn(CommunicationChannel entity) -
createEditButton
-
editAction
-
createAction
private void createAction() -
createDeleteButton
-
deleteAction
-
showFailedNotification
-
showSuccessNotification
private void showSuccessNotification() -
createContextMenuActionColumn
private com.vaadin.flow.component.menubar.MenuBar createContextMenuActionColumn(CommunicationChannel entity) -
updateGrid
private void updateGrid()
-