Class VendorsTable

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.vendors.VendorsTable
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 VendorsTable 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

    Fields
    Modifier and Type
    Field
    Description
     
    private Map<String,String>
     
    private String[]
     
    private String[]
     
     
     
    private final ExperimentalFeatures
     
    private final List<FilterComponent>
     
    private final com.vaadin.flow.component.grid.Grid<Vendor>
     
    private final int
     
    private com.vaadin.flow.shared.Registration
     
    private final VendorService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
     
    private void
    addActionColumnHeader(com.vaadin.flow.component.grid.HeaderRow columnFilterHeaderRow)
     
    private void
     
    private void
    addColumnFilters(com.vaadin.flow.component.grid.HeaderRow columnFilterHeaderRow, String... propertyKeys)
     
    private void
    addColumnRenderer(String propertyKey, com.vaadin.flow.data.renderer.Renderer<Vendor> renderer)
     
    private void
     
    private void
    addColumnVisibilityMenuItems(List<com.vaadin.flow.component.grid.Grid.Column<Vendor>> columns)
     
    private void
     
    private void
    adjustActionColumn(int width)
     
    private void
     
    private void
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private void
    createAddNewButton(com.vaadin.flow.component.orderedlayout.HorizontalLayout topHeaderLayout)
     
    private com.vaadin.flow.component.menubar.MenuBar
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.button.Button
     
    private void
     
    private void
     
    private void
    handleColumnReorder(com.vaadin.flow.component.grid.ColumnReorderEvent<Vendor> event)
     
    private void
     
    protected void
    onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
     
    protected void
    onDetach(com.vaadin.flow.component.DetachEvent detachEvent)
     
    private String
     
    private void
     
    private void
     
    private void
     
    private void
     
    private void
    updateColumnOrder(List<com.vaadin.flow.component.grid.Grid.Column<Vendor>> columns)
     
    private void
     
    private void
     
    private void
     

    Methods inherited from class com.vaadin.flow.component.HtmlComponent

    getTitle, setTitle

    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.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, replace

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

    getText, getWhiteSpace, setText, setWhiteSpace
  • Field Details

  • Constructor Details

    • VendorsTable

      public VendorsTable()
  • 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()
    • 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<Vendor> renderer)
    • renderNameColumn

      private String renderNameColumn(Vendor entity)
    • updateColumnOrder

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

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

      private void addTopHeader()
    • createAddNewButton

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

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout createActionColumn(Vendor entity)
    • createViewButton

      private com.vaadin.flow.component.button.Button createViewButton(Vendor entity)
    • viewAction

      private void viewAction(Vendor entity)
    • createEditButton

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

      private void editAction(Vendor entity)
    • createAction

      private void createAction()
    • createDeleteButton

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

      private void deleteAction(Vendor entity)
    • showFailedNotification

      private void showFailedNotification(Vendor entity)
    • showSuccessNotification

      private void showSuccessNotification()
    • createContextMenuActionColumn

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

      private void updateGrid()