Package org.ametys.cms.search.ui.model
Interface SearchUIColumn
-
- All Superinterfaces:
Field,ResultField
- All Known Implementing Classes:
AbstractSearchUIColumn,MetadataSearchUIColumn,SystemSearchUIColumn
public interface SearchUIColumn extends ResultField
This class represents a result column.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetConverter()Get the JS class name for converting field's valueStringgetDefaultSorter()If the column should be the default sorter 'ASC' or 'DESC'.I18nizableTextgetDescription()Retrieves the description.I18nizableTextgetLabel()Retrieves the label.StringgetRenderer()Get the JS class name for rendererMap<String,SearchUIColumn>getSubColumns()Get the subcolumns informations (for repeaters for example)ValidatorgetValidator()Get the validator.StringgetWidget()Retrieves the widget to use when editing.Map<String,I18nizableText>getWidgetParameters()Get the widget parameters.intgetWidth()The column's widthbooleanisEditable()Determines if the property is editablebooleanisHidden()Determines if the column is hidden by defaultbooleanisSortable()Determines if the column is sortable-
Methods inherited from interface org.ametys.cms.search.model.Field
getContentTypeId, getEnumerator, getType, isMultiple
-
Methods inherited from interface org.ametys.cms.search.model.ResultField
getFullValue, getId, getSearchField, getValue
-
-
-
-
Method Detail
-
getLabel
I18nizableText getLabel()
Retrieves the label.- Returns:
- the label.
-
getDescription
I18nizableText getDescription()
Retrieves the description.- Returns:
- the description.
-
getWidth
int getWidth()
The column's width- Returns:
- The width
-
isHidden
boolean isHidden()
Determines if the column is hidden by default- Returns:
trueif the column is hidden by default
-
isEditable
boolean isEditable()
Determines if the property is editable- Returns:
trueif the property is editable
-
isSortable
boolean isSortable()
Determines if the column is sortable- Returns:
trueif the column is sortable
-
getDefaultSorter
String getDefaultSorter()
If the column should be the default sorter 'ASC' or 'DESC'. Null otherwise.- Returns:
- 'ASC', 'DESC' or null
-
getRenderer
String getRenderer()
Get the JS class name for renderer- Returns:
- The renderer
-
getConverter
String getConverter()
Get the JS class name for converting field's value- Returns:
- The convert JS class name
-
getWidget
String getWidget()
Retrieves the widget to use when editing.- Returns:
- the widget or
nullif none is defined.
-
getWidgetParameters
Map<String,I18nizableText> getWidgetParameters()
Get the widget parameters.- Returns:
- the widget parameters.
-
getValidator
Validator getValidator()
Get the validator.- Returns:
- the validator or
nullif none is defined.
-
getSubColumns
Map<String,SearchUIColumn> getSubColumns()
Get the subcolumns informations (for repeaters for example)- Returns:
- the full columns informations or
nullif none is defined.
-
-