Class StatisticColumn
java.lang.Object
org.ametys.plugins.workspaces.util.StatisticColumn
This class represents a result column
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddSubColumn
(StatisticColumn subColumn) Set the columnsaddSubColumns
(List<StatisticColumn> subColumns) Set the columnsconvert the StatisticColumn into a mapgetGroup()
Get the group of the columngetId()
Get the id of the columngetLabel()
Get the labelisHidden
(boolean hidden) Set the hidden booleanwithConverter
(String converter) Set the converterwithDefaultSorter
(String defaultSorter) Set the defaultSorterwithEditable
(boolean editable) Set the editable booleanwithFilter
(boolean filter) Set the filter booleanSet the groupSet the idwithLabel
(I18nizableText label) Set the labelwithMultiple
(boolean multiple) Set the multiple booleanwithRenderer
(String renderer) Set the rendererwithSortable
(boolean sortable) Set the sortable booleanwithType
(StatisticsColumnType type) Set the typewithWidth
(int width) Set the width
-
Constructor Details
-
StatisticColumn
Create a StatisticColumn- Parameters:
id
- the id of StatisticColumnlabel
- 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
Set the width- Parameters:
width
- the width- Returns:
- StatisticColumn with a set width
-
withRenderer
Set the renderer- Parameters:
renderer
- the renderer- Returns:
- StatisticColumn with a set renderer
-
withConverter
Set the converter- Parameters:
converter
- the converter- Returns:
- StatisticColumn with a set converter
-
isHidden
Set the hidden boolean- Parameters:
hidden
- is the column hidden- Returns:
- StatisticColumn with a set hidden value
-
withEditable
Set the editable boolean- Parameters:
editable
- is the column editable- Returns:
- StatisticColumn with a set editable value
-
withSortable
Set the sortable boolean- Parameters:
sortable
- is the column sortable- Returns:
- StatisticColumn with a set sortable value
-
withMultiple
Set the multiple boolean- Parameters:
multiple
- is the column multiple- Returns:
- StatisticColumn with a set multiple value
-
withDefaultSorter
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
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
Get the group of the column- Returns:
- the group of the column
-
getId
Get the id of the column- Returns:
- the id of the column
-
getLabel
Get the label- Returns:
- The label
-
convertToJSON
convert the StatisticColumn into a map- Returns:
- the map of StatisticColumn attributes
-