public abstract class AbstractSearchUIColumn extends Parameter<MetadataType> implements SearchUIColumn
Modifier and Type | Field and Description |
---|---|
private String |
_contentTypeId |
private String |
_converter |
private String |
_defaultSorter |
private boolean |
_editable |
private boolean |
_hidden |
private boolean |
_multiple |
private String |
_renderer |
private boolean |
_sortable |
private int |
_width |
Constructor and Description |
---|
AbstractSearchUIColumn() |
Modifier and Type | Method and Description |
---|---|
protected I18nizableText |
_configureI18nizableText(Configuration config,
I18nizableText defaultValue)
Configure an i18nizable text
|
String |
getContentTypeId()
Get the content type ID (only when the search criteria is of type CONTENT).
|
String |
getConverter()
Get the JS class name for converting field's value
|
String |
getDefaultSorter()
If the column should be the default sorter 'ASC' or 'DESC'.
|
String |
getRenderer()
Get the JS class name for renderer
|
SearchField |
getSearchField()
Get the
SearchField representing this result field. |
int |
getWidth()
The column's width
|
boolean |
isEditable()
Determines if the property is editable
|
boolean |
isHidden()
Determines if the column is hidden by default
|
boolean |
isMultiple()
Get the multiple status of the field.
|
boolean |
isSortable()
Determines if the column is sortable
|
void |
setContentTypeId(String contentTypeId)
Set the content type ID (only when the search criteria is of type CONTENT).
|
void |
setConverter(String converter)
Set the JS class name for converting field's value
|
void |
setDefaultSorter(String defaultSorter)
Set the default sorter propery
|
void |
setEditable(boolean editable)
Set the editable property
|
void |
setHidden(boolean hidden)
Set the hidden property
|
void |
setMultiple(boolean multiple)
Set the multiple property
|
void |
setRenderer(String renderer)
Set the JS class name for renderer
|
void |
setSortable(boolean sortable)
Set the sortable property
|
void |
setWidth(int width)
Set the column's width
|
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getLabel, getValidator, getWidget, getWidgetParameters
getFullValue, getId, getValue
getEnumerator, getType
private int _width
private String _converter
private boolean _hidden
private boolean _editable
private boolean _sortable
private boolean _multiple
private String _contentTypeId
private String _defaultSorter
public AbstractSearchUIColumn()
public int getWidth()
SearchUIColumn
getWidth
in interface SearchUIColumn
public void setWidth(int width)
width
- The width to setpublic boolean isHidden()
SearchUIColumn
isHidden
in interface SearchUIColumn
true
if the column is hidden by defaultpublic void setHidden(boolean hidden)
hidden
- true
to hidden the columns by defaultpublic boolean isEditable()
SearchUIColumn
isEditable
in interface SearchUIColumn
true
if the property is editablepublic void setSortable(boolean sortable)
sortable
- true
to authorized sortpublic boolean isSortable()
SearchUIColumn
isSortable
in interface SearchUIColumn
true
if the column is sortablepublic void setDefaultSorter(String defaultSorter)
defaultSorter
- If the column should be a default sorter, 'ASC' for ascending 'DESC' for descending. Null otherwise.public String getDefaultSorter()
SearchUIColumn
getDefaultSorter
in interface SearchUIColumn
public void setEditable(boolean editable)
editable
- true
to authorized editionpublic String getRenderer()
SearchUIColumn
getRenderer
in interface SearchUIColumn
public void setRenderer(String renderer)
renderer
- The rendererpublic String getConverter()
SearchUIColumn
getConverter
in interface SearchUIColumn
public void setConverter(String converter)
converter
- The convert JS class namepublic boolean isMultiple()
Field
isMultiple
in interface Field
true
if the field can have multiple values, false
otherwise.public void setMultiple(boolean multiple)
multiple
- the multiple propertypublic String getContentTypeId()
getContentTypeId
in interface Field
public void setContentTypeId(String contentTypeId)
contentTypeId
- the content type ID.public SearchField getSearchField()
ResultField
SearchField
representing this result field.getSearchField
in interface ResultField
SearchField
representing this result field.protected I18nizableText _configureI18nizableText(Configuration config, I18nizableText defaultValue)
config
- The Configuration.defaultValue
- The default value as an I18nizableText.