Class PivotTable

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
org.vaadin.addons.componentfactory.PivotTable
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable

@StyleSheet("context://c3/c3.min.css") @StyleSheet("context://pivottable/dist/pivot.css") @JavaScript("context://jquery/dist/jquery.min.js") @JavaScript("context://jqueryui/jquery-ui.min.js") @JavaScript("context://d3/build/d3.min.js") @JavaScript("context://c3/c3.min.js") @JavaScript("context://pivottable/dist/pivot.min.js") @JavaScript("context://pivottable/dist/c3_renderers.min.js") @JavaScript("context://pivottable/dist/export_renderers.min.js") @JavaScript("context://tabletojson/lib/jquery.tabletojson.min.js") @JavaScript("./pivot_connector.js") @CssImport("./lumo-pivot.css") public class PivotTable extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Abastract base class for Pivot data models.
    final class 
    Utility helpers for valid renderer strings.
    static class 
    Pivot dataa model that auto creates based on list of beans using introspection.
    static class 
     
    static class 
    Data model for PivotTable.
    static enum 
    The mode, PivotMode.INTERACTIVE renders with Pivot UI.
    static class 
    Options for PivotTable
    static class 
     
    static class 
    Localization object for the PivotTable
    final class 
    Utility helpers for valid renderer strings.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create PivotTable using given data and options.
    Create PivotTable using PivotMode.NONINTERACTIVE and given data and options.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.shared.Registration
    addPivotReftreshedListener(com.vaadin.flow.component.ComponentEventListener<PivotTable.PivotRefreshedEvent<PivotTable>> listener)
     
    void
    fetchResult(com.vaadin.flow.function.SerializableConsumer<tools.jackson.databind.JsonNode> callback)
    Fecth the current table result as Json.
    Get the localization object.
    protected void
    onAttach(com.vaadin.flow.component.AttachEvent event)
     
    void
    Set new i18n object in use and send values to client.

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

    getChildren, getContent, getElement, initContent

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

    addListener, bindVisible, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, 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.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Constructor Details

  • Method Details

    • onAttach

      protected void onAttach(com.vaadin.flow.component.AttachEvent event)
      Overrides:
      onAttach in class com.vaadin.flow.component.Component
    • fetchResult

      public void fetchResult(com.vaadin.flow.function.SerializableConsumer<tools.jackson.databind.JsonNode> callback)
      Fecth the current table result as Json. The result will be empty array if the renderer is not a Table type.
      Parameters:
      callback - Lambda function to be executed, gets fetched JsonValue as parameter.
    • addPivotReftreshedListener

      public com.vaadin.flow.shared.Registration addPivotReftreshedListener(com.vaadin.flow.component.ComponentEventListener<PivotTable.PivotRefreshedEvent<PivotTable>> listener)
    • setI18n

      public void setI18n(PivotTable.PivotTableI18n i18n)
      Set new i18n object in use and send values to client.
      Parameters:
      i18n - The PivotTableI18n object.
    • getI18n

      public PivotTable.PivotTableI18n getI18n()
      Get the localization object.
      Returns:
      PivotTableI18n