Class ViewPartnerBodyContactsTable

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.viewpartner.viewpartnerbodycontainer.ViewPartnerBodyContactsTable
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 ViewPartnerBodyContactsTable extends com.vaadin.flow.component.html.Div
  • Field Details

  • Constructor Details

    • ViewPartnerBodyContactsTable

      public ViewPartnerBodyContactsTable(Integer rootId)
  • Method Details

    • 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
    • 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()
    • addColumns

      private void addColumns()
    • addColumnRenderer

      private void addColumnRenderer(String propertyKey, com.vaadin.flow.data.renderer.Renderer<Contact> renderer)
    • renderNameColumn

      private String renderNameColumn(Contact entity)
    • renderPositionColumn

      private String renderPositionColumn(Contact entity)
    • renderPhoneColumn

      private String renderPhoneColumn(Contact entity)
    • renderEmailColumn

      private String renderEmailColumn(Contact entity)
    • renderModifiedAtColumn

      private String renderModifiedAtColumn(Contact entity)
    • updateColumnOrder

      private void updateColumnOrder(List<com.vaadin.flow.component.grid.Grid.Column<Contact>> 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<Contact> event)
    • addColumnVisibilityMenuItems

      private void addColumnVisibilityMenuItems(List<com.vaadin.flow.component.grid.Grid.Column<Contact>> columns)
    • addTopHeader

      private void addTopHeader()
    • addHeading

      private void addHeading()
    • renderHeading

      private String renderHeading()
    • createAddNewButton

      private void createAddNewButton(com.vaadin.flow.component.orderedlayout.HorizontalLayout topHeaderLayout)
    • createActionColumn

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout createActionColumn(Contact entity)
    • createEditButton

      private com.vaadin.flow.component.button.Button createEditButton(Contact entity)
    • editAction

      private void editAction(Contact entity)
    • createAction

      private void createAction()
    • createDeleteButton

      private com.vaadin.flow.component.button.Button createDeleteButton(Contact entity)
    • deleteAction

      private void deleteAction(Contact entity)
    • createRestoreButton

      private com.vaadin.flow.component.button.Button createRestoreButton(Contact entity)
    • restoreAction

      private void restoreAction(Contact entity)
    • showFailedNotification

      private void showFailedNotification(Contact entity, ViewPartnerBodyContactsTable.NotificationType type)
    • showSuccessNotification

      private void showSuccessNotification(ViewPartnerBodyContactsTable.NotificationType type)
    • createContextMenuActionColumn

      private com.vaadin.flow.component.menubar.MenuBar createContextMenuActionColumn(Contact entity)
    • updateGrid

      private void updateGrid()