Package org.primefaces.component.api
Interface UIColumn
- All Known Implementing Classes:
Column,ColumnBase,Columns,ColumnsBase,DynamicColumn
public interface UIColumn
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault javax.faces.component.UIComponentstatic javax.el.ValueExpressioncreateValueExpressionFromField(javax.faces.context.FacesContext context, String var, String field) Used to build a validValueExpressionusingUIData.getVar()andgetField()Mostly used if sortBy and/or filterBy are not defined.voidencodeAll(javax.faces.context.FacesContext context) List<javax.faces.component.UIComponent>getClientId(javax.faces.context.FacesContext context) intdefault StringgetColumnKey(javax.faces.component.UIComponent parent, int rowIndex) SpecialgetColumnKey()method which must be used when we are inside e.g.getColumnKey(javax.faces.component.UIComponent parent, String rowKey) SpecialgetColumnKey()method which must be used when we are inside e.g.getContainerClientId(javax.faces.context.FacesContext context) intintjavax.el.MethodExpressionintjavax.faces.component.UIComponentgetField()javax.el.MethodExpressionintdefault Objectintintintjavax.el.MethodExpressionintgetStyle()getTitle()javax.el.ValueExpressiongetValueExpression(String property) getWidth()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidrenderChildren(javax.faces.context.FacesContext context) default StringresolveField(javax.faces.context.FacesContext context, javax.el.ValueExpression expression) Used to extract UIColumn#field if not defined.default void
-
Field Details
-
DEFAULT_FILTER_MATCH_MODE
-
DYNAMIC_FIELD_VE_LEGACY_PATTERN
Used to extract bean's property from a value expression in dynamic columns (e.g. #{car[column.property]} = name) -
STATIC_FIELD_VE_LEGACY_PATTERN
Used to extract bean's property from a value expression in static columns (e.g. "#{car.year}" = year)
-
-
Method Details
-
resolveField
default String resolveField(javax.faces.context.FacesContext context, javax.el.ValueExpression expression) Used to extract UIColumn#field if not defined. Supports strictly two kind of expressions: #{car.name}: name (for static columns) #{car[column.property]}: name (for dynamic columns)- Parameters:
context- theFacesContextexpression- theValueExpressionlike "filterBy" or "sortBy"- Returns:
- the "field" name if found, otherwise null
-
createValueExpressionFromField
static javax.el.ValueExpression createValueExpressionFromField(javax.faces.context.FacesContext context, String var, String field) Used to build a validValueExpressionusingUIData.getVar()andgetField()Mostly used if sortBy and/or filterBy are not defined. var="car" and field="name" -> #{car.name}- Parameters:
context- theFacesContextvar- the "var" attribute of the parent tablefield- the "field" attribute of the column- Returns:
- the
ValueExpression
-
getValueExpression
-
getContainerClientId
-
getColumnKey
String getColumnKey() -
getColumnKey
SpecialgetColumnKey()method which must be used when we are inside e.g. the DataTable "row state".- Parameters:
parent-rowIndex-- Returns:
-
getColumnKey
SpecialgetColumnKey()method which must be used when we are inside e.g. the DataTable "row state".- Parameters:
parent-rowKey-- Returns:
-
getClientId
String getClientId() -
getClientId
-
isSelectionBox
boolean isSelectionBox() -
isResizable
boolean isResizable() -
getTitle
String getTitle() -
getStyle
String getStyle() -
getStyleClass
String getStyleClass() -
getRowspan
int getRowspan() -
getColspan
int getColspan() -
getFilterPosition
String getFilterPosition() -
getFilterPlaceholder
String getFilterPlaceholder() -
getFacet
-
getFilterBy
Object getFilterBy() -
getFilterValue
Object getFilterValue() -
getHeaderText
String getHeaderText() -
getFilterStyleClass
String getFilterStyleClass() -
getFilterStyle
String getFilterStyle() -
getFilterMatchMode
String getFilterMatchMode() -
getFilterMaxLength
int getFilterMaxLength() -
getCellEditor
CellEditor getCellEditor() -
isDynamic
boolean isDynamic() -
getSortFunction
javax.el.MethodExpression getSortFunction() -
getSortBy
Object getSortBy() -
getChildren
List<javax.faces.component.UIComponent> getChildren() -
isExportable
boolean isExportable() -
isRendered
boolean isRendered() -
encodeAll
- Throws:
IOException
-
renderChildren
- Throws:
IOException
-
getWidth
String getWidth() -
isToggleable
boolean isToggleable() -
isDraggable
boolean isDraggable() -
getFilterFunction
javax.el.MethodExpression getFilterFunction() -
getField
String getField() -
getResponsivePriority
int getResponsivePriority() -
isSortable
boolean isSortable() -
isFilterable
boolean isFilterable() -
isVisible
boolean isVisible() -
isSelectRow
boolean isSelectRow() -
getAriaHeaderText
String getAriaHeaderText() -
getExportFunction
javax.el.MethodExpression getExportFunction() -
getExportValue
Object getExportValue() -
getExportRowspan
int getExportRowspan() -
getExportColspan
int getExportColspan() -
isGroupRow
boolean isGroupRow() -
getExportHeaderValue
Object getExportHeaderValue() -
getExportTag
String getExportTag() -
getSortOrder
String getSortOrder() -
getSortPriority
int getSortPriority() -
getNullSortOrder
int getNullSortOrder() -
isCaseSensitiveSort
boolean isCaseSensitiveSort() -
getDisplayPriority
int getDisplayPriority() -
getConverter
Object getConverter() -
getFilterValueFromValueHolder
-
setFilterValueToValueHolder
-
asUIComponent
default javax.faces.component.UIComponent asUIComponent()
-