Package org.primefaces.component.api
Interface UIColumn
-
- All Known Implementing Classes:
Column
,ColumnBase
,Columns
,ColumnsBase
,DynamicColumn
public interface UIColumn
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
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 Pattern
STATIC_FIELD_VE_LEGACY_PATTERN
Used to extract bean's property from a value expression in static columns (e.g "#{car.year}" = year)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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)
String
getAriaHeaderText()
CellEditor
getCellEditor()
List<javax.faces.component.UIComponent>
getChildren()
String
getClientId()
String
getClientId(javax.faces.context.FacesContext context)
int
getColspan()
String
getColumnKey()
default String
getColumnKey(javax.faces.component.UIComponent parent, int rowIndex)
SpecialgetColumnKey()
method which must be used when we are inside e.g.String
getColumnKey(javax.faces.component.UIComponent parent, String rowKey)
SpecialgetColumnKey()
method which must be used when we are inside e.g.String
getContainerClientId(javax.faces.context.FacesContext context)
int
getDisplayPriority()
String
getExportFooterValue()
javax.el.MethodExpression
getExportFunction()
String
getExportHeaderValue()
String
getExportValue()
javax.faces.component.UIComponent
getFacet(String facet)
String
getField()
Object
getFilterBy()
javax.el.MethodExpression
getFilterFunction()
String
getFilterMatchMode()
int
getFilterMaxLength()
Object
getFilterOptions()
String
getFilterPosition()
String
getFilterStyle()
String
getFilterStyleClass()
Object
getFilterValue()
String
getFooterText()
String
getHeaderText()
int
getNullSortOrder()
int
getResponsivePriority()
int
getRowspan()
String
getSelectionMode()
Object
getSortBy()
javax.el.MethodExpression
getSortFunction()
String
getSortOrder()
int
getSortPriority()
String
getStyle()
String
getStyleClass()
javax.el.ValueExpression
getValueExpression(String property)
String
getWidth()
boolean
isCaseSensitiveSort()
boolean
isDraggable()
boolean
isDynamic()
boolean
isExportable()
boolean
isFilterable()
boolean
isGroupRow()
boolean
isRendered()
boolean
isResizable()
boolean
isSelectRow()
boolean
isSortable()
boolean
isToggleable()
boolean
isVisible()
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.
-
-
-
Field Detail
-
DYNAMIC_FIELD_VE_LEGACY_PATTERN
static final Pattern 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
static final Pattern STATIC_FIELD_VE_LEGACY_PATTERN
Used to extract bean's property from a value expression in static columns (e.g "#{car.year}" = year)
-
-
Method Detail
-
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
javax.el.ValueExpression getValueExpression(String property)
-
getContainerClientId
String getContainerClientId(javax.faces.context.FacesContext context)
-
getColumnKey
String getColumnKey()
-
getColumnKey
default String getColumnKey(javax.faces.component.UIComponent parent, int rowIndex)
SpecialgetColumnKey()
method which must be used when we are inside e.g. the DataTable "row state".- Parameters:
parent
-rowIndex
-- Returns:
-
getColumnKey
String getColumnKey(javax.faces.component.UIComponent parent, String rowKey)
SpecialgetColumnKey()
method which must be used when we are inside e.g. the DataTable "row state".- Parameters:
parent
-rowKey
-- Returns:
-
getClientId
String getClientId()
-
getClientId
String getClientId(javax.faces.context.FacesContext context)
-
getSelectionMode
String getSelectionMode()
-
isResizable
boolean isResizable()
-
getStyle
String getStyle()
-
getStyleClass
String getStyleClass()
-
getRowspan
int getRowspan()
-
getColspan
int getColspan()
-
getFilterPosition
String getFilterPosition()
-
getFacet
javax.faces.component.UIComponent getFacet(String facet)
-
getFilterBy
Object getFilterBy()
-
getFilterValue
Object getFilterValue()
-
getHeaderText
String getHeaderText()
-
getFooterText
String getFooterText()
-
getFilterStyleClass
String getFilterStyleClass()
-
getFilterStyle
String getFilterStyle()
-
getFilterMatchMode
String getFilterMatchMode()
-
getFilterMaxLength
int getFilterMaxLength()
-
getFilterOptions
Object getFilterOptions()
-
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
void encodeAll(javax.faces.context.FacesContext context) throws IOException
- Throws:
IOException
-
renderChildren
void renderChildren(javax.faces.context.FacesContext context) throws IOException
- 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
String getExportValue()
-
isGroupRow
boolean isGroupRow()
-
getExportHeaderValue
String getExportHeaderValue()
-
getExportFooterValue
String getExportFooterValue()
-
getSortOrder
String getSortOrder()
-
getSortPriority
int getSortPriority()
-
getNullSortOrder
int getNullSortOrder()
-
isCaseSensitiveSort
boolean isCaseSensitiveSort()
-
getDisplayPriority
int getDisplayPriority()
-
-