Examples of enterComponentContext()


Examples of org.openfaces.component.table.impl.DynamicCol.enterComponentContext()

     * This method is only for internal usage from within the OpenFaces library. It shouldn't be used explicitly
     * by any application code.
     */
    public String getColumnHeader() {
        DynamicCol dynamicCol = (this instanceof DynamicCol) ? (DynamicCol) this : null;
        Runnable restoreVariables = dynamicCol != null ? dynamicCol.enterComponentContext() : null;
        try {
            String header = getHeaderValue();
            if (header != null)
                return header;
            UIComponent component = getHeader();
View Full Code Here

Examples of org.openfaces.component.table.impl.DynamicCol.enterComponentContext()

                // <MOD-5>
                Map<String, UIComponent> colFacets;
                Runnable restoreVariables = null;
                if (child instanceof DynamicCol) {
                    DynamicCol dynamicCol = (DynamicCol) child;
                    restoreVariables = dynamicCol.enterComponentContext();
                    colFacets = dynamicCol.getFacetsForProcessing();
                } else
                    colFacets = child.getFacets();
                // </MOD-5>
View Full Code Here

Examples of org.openfaces.component.table.impl.DynamicCol.enterComponentContext()

                    // <MOD-5>
                    List<UIComponent> colChildren;
                    Runnable restoreVariables = null;
                    if (child instanceof DynamicCol) {
                        DynamicCol dynamicCol = (DynamicCol) child;
                        restoreVariables = dynamicCol.enterComponentContext();
                        colChildren = dynamicCol.getChildrenForProcessing();
                    } else
                        colChildren = child.getChildren();
                    // </MOD-5>
View Full Code Here

Examples of org.openfaces.component.table.impl.DynamicCol.enterComponentContext()

        return cell;
    }

    public static Object getHeaderOrFooterCellContent(BaseColumn col, boolean isHeader) {
        DynamicCol dynamicCol = col instanceof DynamicCol ? (DynamicCol) col : null;
        Runnable restoreVariables = (dynamicCol != null) ? dynamicCol.enterComponentContext() : null;
        try {
            Object cellContent;
            if (isHeader) {
                cellContent = col.getHeader();
                if (cellContent == null)
View Full Code Here

Examples of org.openfaces.component.table.impl.DynamicCol.enterComponentContext()

            if (Environment.isExplorer())
                writer.startElement("span", table);
            writer.writeAttribute("class", "o_noWrapHeaderCell", null);
        }
        DynamicCol dynamicCol = column instanceof DynamicCol ? (DynamicCol) column : null;
        Runnable restoreVariables = dynamicCol != null ? dynamicCol.enterComponentContext() : null;
        try {
            if (content != null) {
                if (content instanceof UIComponent) {
                    UIComponent uiComponent = (UIComponent) content;
                    uiComponent.encodeAll(context);
View Full Code Here

Examples of org.openfaces.component.table.impl.DynamicCol.enterComponentContext()

            UIComponent cellComponentsContainer) throws IOException {
        if (!(cellComponentsContainer instanceof Column) && !(cellComponentsContainer instanceof Cell))
            return;
        boolean childrenEmpty = true;
        DynamicCol dynamicCol = cellComponentsContainer instanceof DynamicCol ? (DynamicCol) cellComponentsContainer : null;
        Runnable exitContext = dynamicCol != null ? dynamicCol.enterComponentContext() : null;
        try {
            List<UIComponent> children = (cellComponentsContainer instanceof SyntheticColumn)
                    ? ((SyntheticColumn) cellComponentsContainer).getChildrenForProcessing()
                    : cellComponentsContainer.getChildren();
View Full Code Here

Examples of org.openfaces.component.table.impl.DynamicColumn.enterComponentContext()

                            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

Examples of org.openfaces.component.table.impl.DynamicColumn.enterComponentContext()

            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

Examples of org.openfaces.component.table.impl.DynamicColumn.enterComponentContext()

                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
Copyright © 2018 www.massapi.com. 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.