Class AbstractSearchUIColumn
java.lang.Object
org.ametys.runtime.parameter.Parameter<MetadataType>
org.ametys.cms.search.ui.model.impl.AbstractSearchUIColumn
- All Implemented Interfaces:
Field,ResultField,SearchUIColumn
- Direct Known Subclasses:
MetadataSearchUIColumn,SystemSearchUIColumn
public abstract class AbstractSearchUIColumn
extends Parameter<MetadataType>
implements SearchUIColumn
This class represents a result column
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected I18nizableText_configureI18nizableText(Configuration config, I18nizableText defaultValue) Configure an i18nizable textGet the content type ID (only when the search criteria is of type CONTENT).Get 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 rendererGet theSearchFieldrepresenting this result field.intgetWidth()The column's widthbooleanDetermines if the property is editablebooleanisHidden()Determines if the column is hidden by defaultbooleanGet the multiple status of the field.booleanDetermines if the column is sortablevoidsetContentTypeId(String contentTypeId) Set the content type ID (only when the search criteria is of type CONTENT).voidsetConverter(String converter) Set the JS class name for converting field's valuevoidsetDefaultSorter(String defaultSorter) Set the default sorter properyvoidsetEditable(boolean editable) Set the editable propertyvoidsetHidden(boolean hidden) Set the hidden propertyvoidsetMultiple(boolean multiple) Set the multiple propertyvoidsetRenderer(String renderer) Set the JS class name for renderervoidsetSortable(boolean sortable) Set the sortable propertyvoidsetWidth(int width) Set the column's widthMethods inherited from class org.ametys.runtime.parameter.Parameter
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.cms.search.model.Field
getEnumerator, getTypeMethods inherited from interface org.ametys.cms.search.model.ResultField
getFullValue, getId, getValueMethods inherited from interface org.ametys.cms.search.ui.model.SearchUIColumn
getDescription, getLabel, getSubColumns, getValidator, getWidget, getWidgetParameters
-
Constructor Details
-
AbstractSearchUIColumn
public AbstractSearchUIColumn()
-
-
Method Details
-
getWidth
Description copied from interface:SearchUIColumnThe column's width- Specified by:
getWidthin interfaceSearchUIColumn- Returns:
- The width
-
setWidth
Set the column's width- Parameters:
width- The width to set
-
isHidden
Description copied from interface:SearchUIColumnDetermines if the column is hidden by default- Specified by:
isHiddenin interfaceSearchUIColumn- Returns:
trueif the column is hidden by default
-
setHidden
Set the hidden property- Parameters:
hidden-trueto hidden the columns by default
-
isEditable
Description copied from interface:SearchUIColumnDetermines if the property is editable- Specified by:
isEditablein interfaceSearchUIColumn- Returns:
trueif the property is editable
-
setSortable
Set the sortable property- Parameters:
sortable-trueto authorized sort
-
isSortable
Description copied from interface:SearchUIColumnDetermines if the column is sortable- Specified by:
isSortablein interfaceSearchUIColumn- Returns:
trueif the column is sortable
-
setDefaultSorter
Set the default sorter propery- Parameters:
defaultSorter- If the column should be a default sorter, 'ASC' for ascending 'DESC' for descending. Null otherwise.
-
getDefaultSorter
Description copied from interface:SearchUIColumnIf the column should be the default sorter 'ASC' or 'DESC'. Null otherwise.- Specified by:
getDefaultSorterin interfaceSearchUIColumn- Returns:
- 'ASC', 'DESC' or null
-
setEditable
Set the editable property- Parameters:
editable-trueto authorized edition
-
getRenderer
Description copied from interface:SearchUIColumnGet the JS class name for renderer- Specified by:
getRendererin interfaceSearchUIColumn- Returns:
- The renderer
-
setRenderer
Set the JS class name for renderer- Parameters:
renderer- The renderer
-
getConverter
Description copied from interface:SearchUIColumnGet the JS class name for converting field's value- Specified by:
getConverterin interfaceSearchUIColumn- Returns:
- The convert JS class name
-
setConverter
Set the JS class name for converting field's value- Parameters:
converter- The convert JS class name
-
isMultiple
Description copied from interface:FieldGet the multiple status of the field.- Specified by:
isMultiplein interfaceField- Returns:
trueif the field can have multiple values,falseotherwise.
-
setMultiple
Set the multiple property- Parameters:
multiple- the multiple property
-
getContentTypeId
Get the content type ID (only when the search criteria is of type CONTENT).- Specified by:
getContentTypeIdin interfaceField- Returns:
- the content type ID.
-
setContentTypeId
Set the content type ID (only when the search criteria is of type CONTENT).- Parameters:
contentTypeId- the content type ID.
-
getSearchField
Description copied from interface:ResultFieldGet theSearchFieldrepresenting this result field.- Specified by:
getSearchFieldin interfaceResultField- Returns:
- The
SearchFieldrepresenting this result field.
-
_configureI18nizableText
protected I18nizableText _configureI18nizableText(Configuration config, I18nizableText defaultValue) Configure an i18nizable text- Parameters:
config- The Configuration.defaultValue- The default value as an I18nizableText.- Returns:
- The i18nizable text
-