Package org.openfaces.component.table.impl

Examples of org.openfaces.component.table.impl.DynamicColumn


        ValueExpression idExpression = getColumnIdExpression();
        int colIndex = 0;
        for (Iterator iterator = colDatas.iterator(); iterator.hasNext(); colIndex++) {
            Object colData = iterator.next();
            requestMap.put(var, colData);
            DynamicColumn column = justUpdateExistingColumns
                    ? (DynamicColumn) oldColumns.get(colIndex)
                    : new DynamicColumn();
            newColumns.add(column);
            if (!justUpdateExistingColumns) {
                if (idExpression != null)
                    column.setId((String) idExpression.getValue(getFacesContext().getELContext()));
                else {
                    column.setId(getId() + "_" + colIndex);
                }
            }

            column.setColumns(this);
            column.setColData(colData);
            column.setColIndex(colIndex);

            column.setRendered(getColumnRendered());
            column.setType(getColumnType());

            TableUtil.copyColumnAttributes(this, column);

            column.setValueExpression(getColumnValueExpression());

            applySortingParameters(column);
            applyFilteringParameters(context, column);

            requestMap.put(var, prevVarValue);
View Full Code Here


                            undeclareLatestDynamicColumnVariables();

                            int nextIndex = summaryListIterator.nextIndex();
                            UIComponent summaryOwner = summaryOwners.get(nextIndex);
                            if (summaryOwner instanceof DynamicColumn) {
                                DynamicColumn dynamicColumn = (DynamicColumn) summaryOwner;
                                restoreDynamicColumnVariables = dynamicColumn.enterComponentContext();
                            }
                            return summaryListIterator.next();
                        }

                        public void remove() {
View Full Code Here

        public ValueExpression getByExpression() {
            return getByExpression(true);
        }

        public Object getByValue(ELContext elContext) {
            DynamicColumn dynamicColumn = column instanceof DynamicColumn ? (DynamicColumn) column : null;
            Runnable restoreVariables = dynamicColumn != null ? dynamicColumn.enterComponentContext() : null;
            Object value = getByExpression().getValue(elContext);
            if (restoreVariables != null) restoreVariables.run();
            return value;
        }
View Full Code Here

                    });
                return parent;
            } else if (parent instanceof Columns) {
                List<DynamicColumn> dynamicColumns = ((Columns) parent).toColumnList(context);
                int columnIndex = Integer.parseInt(id);
                final DynamicColumn dynamicColumn = dynamicColumns.get(columnIndex);
                final Runnable restoreVariables = dynamicColumn.enterComponentContext();
                if (restoreDataPointerRunnables != null)
                    restoreDataPointerRunnables.add(new Runnable() {
                        public void run() {
                            if (restoreVariables != null) restoreVariables.run();
                        }
View Full Code Here

TOP

Related Classes of org.openfaces.component.table.impl.DynamicColumn

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.