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.UIComponent
static javax.el.ValueExpression
createValueExpressionFromField
(javax.faces.context.FacesContext context, String var, String field) Used to build a validValueExpression
usingUIData.getVar()
andgetField()
Mostly used if sortBy and/or filterBy are not defined.void
encodeAll
(javax.faces.context.FacesContext context) List
<javax.faces.component.UIComponent> getClientId
(javax.faces.context.FacesContext context) int
default String
getColumnKey
(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) int
int
javax.el.MethodExpression
int
javax.faces.component.UIComponent
getField()
javax.el.MethodExpression
int
default EditableValueHolderState
getFilterValueHolder
(javax.faces.context.FacesContext context) int
int
int
javax.el.MethodExpression
int
getStyle()
getTitle()
javax.el.ValueExpression
getValueExpression
(String property) getWidth()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
renderChildren
(javax.faces.context.FacesContext context) default String
resolveField
(javax.faces.context.FacesContext context, javax.el.ValueExpression expression) Used to extract UIColumn#field if not defined.default void
setFilterValueToValueHolder
(javax.faces.context.FacesContext context, Object value)
-
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
- theFacesContext
expression
- theValueExpression
like "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 validValueExpression
usingUIData.getVar()
andgetField()
Mostly used if sortBy and/or filterBy are not defined. var="car" and field="name" -> #{car.name}- Parameters:
context
- theFacesContext
var
- 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() -
getFilterValueHolder
-
setFilterValueToValueHolder
-
asUIComponent
default javax.faces.component.UIComponent asUIComponent()
-