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.
-
Field Summary
Fields inherited from interface org.ametys.runtime.model.ModelViewItem
DEFAULT_ITEM_TAG_NAME -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines 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 rendererintgetWidth()The column's widthbooleanDetermines if the property is editablebooleanisHidden()Determines if the column is hidden by defaultbooleanDetermines if the column is sortablevoidsetAllowSortOnMultipleJoin(boolean allowSortOnMultipleJoin) Set the allowSortOnMultipleJoin propertyvoidsetConverter(Optional<String> converter) Set the JS class name for converting field's valuevoidsetDefaultSorter(Optional<String> defaultSorter) Set the default sorter propertyvoidsetEditable(boolean editable) Set the editable propertyvoidsetHidden(boolean hidden) Set the hidden propertyvoidsetRenderer(Optional<String> renderer) Set the JS class name for renderervoidsetSortable(boolean sortable) Set the sortable propertyvoidsetWidth(int width) Set the column's widthMethods inherited from interface org.ametys.runtime.util.Labelable
getDescription, getLabel, getNameMethods inherited from interface org.ametys.runtime.model.ModelViewItem
getDefinition, setDefinition, setNameMethods 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:
trueif the column is hidden by default
-
setHidden
Set the hidden property- Parameters:
hidden-trueto hidden the columns by default
-
isEditable
boolean isEditable()Determines if the property is editable- Returns:
trueif the property is editable
-
setEditable
Set the editable property- Parameters:
editable-trueto authorized edition
-
isSortable
boolean isSortable()Determines if the column is sortable- Returns:
trueif the column is sortable
-
setSortable
Set the sortable property- Parameters:
sortable-trueto authorized sort
-
allowSortOnMultipleJoin
boolean allowSortOnMultipleJoin()Determines if sort is allowed on multiple join- Returns:
trueif sort is allowed on multiple join,falseotherwise
-
setAllowSortOnMultipleJoin
Set the allowSortOnMultipleJoin property- Parameters:
allowSortOnMultipleJoin-trueto 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
-