Package org.openfaces.component.table

Examples of org.openfaces.component.table.Columns$FilterExpressionExpression


    @Override
    public void setComponentProperties(FacesContext context, UIComponent component) {
        super.setComponentProperties(context, component);

        Columns columns = (Columns) component;

        setValueExpressionProperty(component, "value");
        setStringProperty(component, "var", false, true);
        setStringProperty(component, "indexVar");
        setValueExpressionProperty(component, "headerValue", getPropertyValue("header"), "header");
        setValueExpressionProperty(component, "footerValue", getPropertyValue("footer"), "footer");
        setValueExpressionProperty(component, "columnValue");
        setConverterProperty(component, "converter");

        setValueExpressionProperty(component, "columnId");
        setBooleanProperty(component, "columnRendered");

        setBooleanProperty(component, "sortingEnabled");
        setValueExpressionProperty(component, "sortingExpression");
        setValueExpressionProperty(component, "groupingExpression");
        String sortingComparator = getPropertyValue("sortingComparator");
        if (sortingComparator != null) {
            ValueExpression comparatorExpression;
            if (!isValueReference(sortingComparator)) {
                if (ColumnTag.CASE_INSENSITIVE_TEXT_COMPARATOR.equals(sortingComparator))
                    comparatorExpression = new ColumnTag.CaseInsensitiveComparatorBinding();
                else
                    throw new IllegalArgumentException("sortingComparator attribute should either be defined as binding or as \"" + ColumnTag.CASE_INSENSITIVE_TEXT_COMPARATOR + "\", but it is defined as follows: " + sortingComparator);
            } else {
                comparatorExpression = createValueExpression(context, "sortingComparator", sortingComparator);
            }
            columns.setValueExpression("sortingComparator", comparatorExpression);
        }

        setStringProperty(component, "width");
        setStringProperty(component, "align");
        setStringProperty(component, "valign");
View Full Code Here


    }

    private void restoreDynamicColumnsState(List<Object> state) {
        List<Columns> children = findDynamicColumnComponents();
        for (int i = 0, count = children.size(); i < count; i++) {
            Columns columns = children.get(i);
            Object theseColumnStates = state.get(i);
            columns.setColumnStates(theseColumnStates);
        }
    }
View Full Code Here

        for (UIComponent child : children) {
            if (child instanceof BaseColumn && !(child instanceof ColumnGroup)) {
                Components.generateIdIfNotSpecified(child);
                columns.add((BaseColumn) child);
            } else if (child instanceof Columns) {
                Columns tableColumns = (Columns) child;
                List<DynamicColumn> dynamicColumns = tableColumns.toColumnList(context);
                columns.addAll(dynamicColumns);
            } else if (child instanceof ColumnGroup) {
                ColumnGroup tcg = (ColumnGroup) child;
                columns.addAll(getColumnsFromList(context, tcg.getChildren()));
            }
View Full Code Here

TOP

Related Classes of org.openfaces.component.table.Columns$FilterExpressionExpression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.