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, setWidgetParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getLabel, getValidator, getWidget, getWidgetParametersgetFullValue, getId, getValuegetEnumerator, getTypeprivate 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()
SearchUIColumngetWidth in interface SearchUIColumnpublic void setWidth(int width)
width - The width to setpublic boolean isHidden()
SearchUIColumnisHidden in interface SearchUIColumntrue if the column is hidden by defaultpublic void setHidden(boolean hidden)
hidden - true to hidden the columns by defaultpublic boolean isEditable()
SearchUIColumnisEditable in interface SearchUIColumntrue if the property is editablepublic void setSortable(boolean sortable)
sortable - true to authorized sortpublic boolean isSortable()
SearchUIColumnisSortable in interface SearchUIColumntrue 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()
SearchUIColumngetDefaultSorter in interface SearchUIColumnpublic void setEditable(boolean editable)
editable - true to authorized editionpublic String getRenderer()
SearchUIColumngetRenderer in interface SearchUIColumnpublic void setRenderer(String renderer)
renderer - The rendererpublic String getConverter()
SearchUIColumngetConverter in interface SearchUIColumnpublic void setConverter(String converter)
converter - The convert JS class namepublic boolean isMultiple()
FieldisMultiple in interface Fieldtrue if the field can have multiple values, false otherwise.public void setMultiple(boolean multiple)
multiple - the multiple propertypublic String getContentTypeId()
getContentTypeId in interface Fieldpublic void setContentTypeId(String contentTypeId)
contentTypeId - the content type ID.public SearchField getSearchField()
ResultFieldSearchField representing this result field.getSearchField in interface ResultFieldSearchField representing this result field.protected I18nizableText _configureI18nizableText(Configuration config, I18nizableText defaultValue)
config - The Configuration.defaultValue - The default value as an I18nizableText.