Class DataTableOptions

java.lang.Object
org.idempiere.zk.datatable.DataTableOptions

public class DataTableOptions extends Object
  • Field Details

    • DESC_OFFSET

      public final Integer DESC_OFFSET
  • Constructor Details

    • DataTableOptions

      public DataTableOptions(String locale)
      Parameters:
      locale - BCP 47 language tag (e.g. en-US), used for the datatables i18n resource
    • DataTableOptions

      public DataTableOptions(String locale, String adLanguage)
      Parameters:
      locale - BCP 47 language tag (e.g. en-US), used for the datatables i18n resource
      adLanguage - AD_Language (e.g. en_US), used for messages. If null, it is derived from locale.
  • Method Details

    • getDataTableOptions

      public String getDataTableOptions()
      Get datatables settings
      Returns:
      json datatables settings
    • geti18nURL

      public String geti18nURL()
      Get i18n json URL for datatables
      Returns:
      i18n json URL
    • addPrintColumnIndex

      public void addPrintColumnIndex(DatatableReportRenderer.FunctionTypes type, Integer id)
      Parameters:
      type -
      id -
    • getPrintColLastIndex

      public Integer getPrintColLastIndex()
      Get last print column index
      Returns:
      last print column index
    • setPrintColLastIndex

      public void setPrintColLastIndex(Integer printColLastIndex)
      Set last print column index
      Parameters:
      printColLastIndex -
    • getLocale

      public String getLocale()
      Get locale
      Returns:
      locale
    • setOrdering

      public void setOrdering(boolean ordering)
      Enable/disable column sorting option for user