Interface UIColumn

    • 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 - the FacesContext
        expression - the ValueExpression 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 valid ValueExpression using UIData.getVar() and getField() Mostly used if sortBy and/or filterBy are not defined. var="car" and field="name" -> #{car.name}
        Parameters:
        context - the FacesContext
        var - the "var" attribute of the parent table
        field - 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)
        Special getColumnKey() 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)
        Special getColumnKey() 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()
      • 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()
      • 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
      • isToggleable

        boolean isToggleable()
      • isDraggable

        boolean isDraggable()
      • getFilterFunction

        javax.el.MethodExpression getFilterFunction()
      • 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()