Class StatisticColumn

java.lang.Object
org.ametys.plugins.workspaces.util.StatisticColumn

public class StatisticColumn extends Object
This class represents a result column
  • Constructor Details

    • StatisticColumn

      Create a StatisticColumn
      Parameters:
      id - the id of StatisticColumn
      label - the label of StatisticColumn
  • Method Details

    • withId

      Set the id
      Parameters:
      id - the id
      Returns:
      StatisticColumn with a set id
    • withLabel

      Set the label
      Parameters:
      label - the label
      Returns:
      StatisticColumn with a set label
    • withType

      Set the type
      Parameters:
      type - the type
      Returns:
      StatisticColumn with a set type
    • withWidth

      public StatisticColumn withWidth(int width)
      Set the width
      Parameters:
      width - the width
      Returns:
      StatisticColumn with a set width
    • withRenderer

      public StatisticColumn withRenderer(String renderer)
      Set the renderer
      Parameters:
      renderer - the renderer
      Returns:
      StatisticColumn with a set renderer
    • withConverter

      public StatisticColumn withConverter(String converter)
      Set the converter
      Parameters:
      converter - the converter
      Returns:
      StatisticColumn with a set converter
    • isHidden

      public StatisticColumn isHidden(boolean hidden)
      Set the hidden boolean
      Parameters:
      hidden - is the column hidden
      Returns:
      StatisticColumn with a set hidden value
    • withEditable

      public StatisticColumn withEditable(boolean editable)
      Set the editable boolean
      Parameters:
      editable - is the column editable
      Returns:
      StatisticColumn with a set editable value
    • withSortable

      public StatisticColumn withSortable(boolean sortable)
      Set the sortable boolean
      Parameters:
      sortable - is the column sortable
      Returns:
      StatisticColumn with a set sortable value
    • withMultiple

      public StatisticColumn withMultiple(boolean multiple)
      Set the multiple boolean
      Parameters:
      multiple - is the column multiple
      Returns:
      StatisticColumn with a set multiple value
    • withDefaultSorter

      public StatisticColumn withDefaultSorter(String defaultSorter)
      Set the defaultSorter
      Parameters:
      defaultSorter - the defaultSorter
      Returns:
      StatisticColumn with a set defaultSorter
    • withGroup

      Set the group
      Parameters:
      group - the group
      Returns:
      StatisticColumn with a set group
    • withFilter

      public StatisticColumn withFilter(boolean filter)
      Set the filter boolean
      Parameters:
      filter - is the column filterable
      Returns:
      StatisticColumn with a set filter value
    • addSubColumn

      Set the columns
      Parameters:
      subColumn - the column
      Returns:
      StatisticColumn with a set columns
    • addSubColumns

      Set the columns
      Parameters:
      subColumns - the columns
      Returns:
      StatisticColumn with a set columns
    • getGroup

      public String getGroup()
      Get the group of the column
      Returns:
      the group of the column
    • getId

      public String getId()
      Get the id of the column
      Returns:
      the id of the column
    • convertToJSON

      convert the StatisticColumn into a map
      Returns:
      the map of StatisticColumn attributes