Package org.primefaces.component.columns

Examples of org.primefaces.component.columns.Columns


                }
                   
                if(child instanceof UIColumn) {
                    if(child.getFacetCount() > 0) {
                        if(child instanceof Columns) {
                            Columns columns = (Columns) child;
                            for(int i = 0; i < columns.getRowCount(); i++) {
                                columns.setRowIndex(i);
                                boolean value = visitColumnFacets(context, callback, child);
                                if(value) {
                                    return true;
                                }
                            }
                            columns.setRowIndex(-1);
                        }
                        else {
                            boolean value = visitColumnFacets(context, callback, child);
                            if(value) {
                                return true;
View Full Code Here


            if(getChildCount() > 0) {
                for(UIComponent kid : getChildren()) {

                    if(requiresColumns) {
                        if(kid instanceof Columns) {
                            Columns uicolumns = (Columns) kid;
                            for(int i = 0; i < uicolumns.getRowCount(); i++) {
                                uicolumns.setRowIndex(i);

                                boolean value = visitColumnContent(context, callback, uicolumns);
                                if(value) {
                                    uicolumns.setRowIndex(-1);
                                    return true;
                                }
                            }

                            uicolumns.setRowIndex(-1);
                        }
                        else {
                            boolean value = visitColumnContent(context, callback, kid);
                            if(value) {
                                return true;
View Full Code Here

                                    filterMetadata.add(new FilterMeta(column, filterByVE, filterValue));
                                }
                            }
                        }
                        else if(headerRowChild instanceof Columns) {
                            Columns uiColumns = (Columns) headerRowChild;
                            String uiColumnsClientId = uiColumns.getClientId(context);

                            for(int i=0; i < uiColumns.getRowCount(); i++) {
                                DynamicColumn dynaColumn = new DynamicColumn(i, uiColumns);
                                dynaColumn.setColumnKey(uiColumnsClientId + separator + i);
                                dynaColumn.applyStatelessModel();
                               
                                ValueExpression columnFilterByVE = dynaColumn.getValueExpression("filterBy");
View Full Code Here

        if(table.isPaginator()) {
            table.calculateFirst();
        }

        Columns dynamicCols = table.getDynamicColumns();
        if(dynamicCols != null) {
            dynamicCols.setRowIndex(-1);
        }
    }  
View Full Code Here

                            if(headerRowChild.isRendered()) {
                                if(headerRowChild instanceof Column) {
                                    encodeColumnHeader(context, table, (Column) headerRowChild);
                                }
                                else if(headerRowChild instanceof Columns) {
                                    Columns uiColumns = (Columns) headerRowChild;
                                    String uiColumnsClientId = uiColumns.getClientId(context);

                                    for(int i=0; i < uiColumns.getRowCount(); i++) {
                                        DynamicColumn dynaColumn = new DynamicColumn(i, uiColumns);
                                        dynaColumn.setColumnKey(uiColumnsClientId + separator + i);
                                        dynaColumn.applyModel();
                                       
                                        encodeColumnHeader(context, table, dynaColumn);
View Full Code Here

import org.primefaces.component.datatable.DataTable;

public class DynamicColumnsListener implements SystemEventListener {

    public void processEvent(SystemEvent event) throws AbortProcessingException {
        Columns columns = (Columns) event.getSource();
       
        if (columns.getParent() instanceof DataTable) {
          ((DataTable) columns.getParent()).setDynamicColumns(columns);
        }
    }
View Full Code Here

        if(table.isPaginator()) {
            table.calculateFirst();
        }

        Columns dynamicCols = table.getDynamicColumns();
        if(dynamicCols != null) {
            dynamicCols.setRowIndex(-1);
        }
    }  
View Full Code Here

TOP

Related Classes of org.primefaces.component.columns.Columns

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.