Package org.ametys.cms.search.ui.model
Interface SearchUIColumn<T extends ModelItem>
- Type Parameters:
T
- type of the referenced model item
- All Superinterfaces:
Labelable
,ModelViewItem<T>
,ModifiableLabelable
,ViewItem
- All Known Implementing Classes:
RepeaterSearchUIColumn
,ViewElementAccessorSearchUIColumn
,ViewElementSearchUIColumn
This class represents a result column.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if sort is allowed on multiple joinGet the JS class name for converting field's valueIf the column should be the default sorter 'ASC' or 'DESC'.Get the JS class name for rendererint
getWidth()
The column's widthboolean
Determines if the property is editableboolean
isHidden()
Determines if the column is hidden by defaultboolean
Determines if the column is sortablevoid
setAllowSortOnMultipleJoin
(boolean allowSortOnMultipleJoin) Set the allowSortOnMultipleJoin propertyvoid
setConverter
(Optional<String> converter) Set the JS class name for converting field's valuevoid
setDefaultSorter
(Optional<String> defaultSorter) Set the default sorter propertyvoid
setEditable
(boolean editable) Set the editable propertyvoid
setHidden
(boolean hidden) Set the hidden propertyvoid
setRenderer
(Optional<String> renderer) Set the JS class name for renderervoid
setSortable
(boolean sortable) Set the sortable propertyvoid
setWidth
(int width) Set the column's widthMethods inherited from interface org.ametys.runtime.util.Labelable
getDescription, getLabel, getName
Methods inherited from interface org.ametys.runtime.model.ModelViewItem
getDefinition, setDefinition, setName
Methods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel
-
Method Details
-
getWidth
int getWidth()The column's width- Returns:
- The width
-
setWidth
Set the column's width- Parameters:
width
- The width to set
-
isHidden
boolean isHidden()Determines if the column is hidden by default- Returns:
true
if the column is hidden by default
-
setHidden
Set the hidden property- Parameters:
hidden
-true
to hidden the columns by default
-
isEditable
boolean isEditable()Determines if the property is editable- Returns:
true
if the property is editable
-
setEditable
Set the editable property- Parameters:
editable
-true
to authorized edition
-
isSortable
boolean isSortable()Determines if the column is sortable- Returns:
true
if the column is sortable
-
setSortable
Set the sortable property- Parameters:
sortable
-true
to authorized sort
-
allowSortOnMultipleJoin
boolean allowSortOnMultipleJoin()Determines if sort is allowed on multiple join- Returns:
true
if sort is allowed on multiple join,false
otherwise
-
setAllowSortOnMultipleJoin
Set the allowSortOnMultipleJoin property- Parameters:
allowSortOnMultipleJoin
-true
to authorized sort on multiple join
-
getDefaultSorter
If the column should be the default sorter 'ASC' or 'DESC'. Null otherwise.- Returns:
- 'ASC', 'DESC' or null
-
setDefaultSorter
Set the default sorter property- Parameters:
defaultSorter
- If the column should be a default sorter, 'ASC' for ascending 'DESC' for descending. Null otherwise.
-
getRenderer
Get the JS class name for renderer- Returns:
- The renderer
-
setRenderer
Set the JS class name for renderer- Parameters:
renderer
- The renderer
-
getConverter
Get the JS class name for converting field's value- Returns:
- The convert JS class name
-
setConverter
Set the JS class name for converting field's value- Parameters:
converter
- The convert JS class name
-