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:
  • 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