Package org.openfaces.component.table

Examples of org.openfaces.component.table.Cell


        return getExplicitlyAssociatedDataTable().getRowGrouping().getGroupFooterRowClass();
    }

    @Override
    protected Cell createDefaultCell(DataTable dataTable) {
        Cell defaultCell = super.createDefaultCell(dataTable);
        defaultCell.getAttributes().put(SYNTHETIC_GROUP_HEADER_CELL_MARKER, true);
        return defaultCell;
    }
View Full Code Here


        return GroupHeader.class;
    }

    @Override
    protected Cell createDefaultCell(DataTable dataTable) {
        Cell defaultCell = super.createDefaultCell(dataTable);
        defaultCell.getAttributes().put(SYNTHETIC_GROUP_HEADER_CELL_MARKER, true);
        return defaultCell;
    }
View Full Code Here

    public GroupHeaderOrFooterRow(DataTable dataTable) {
        if (dataTable == null) throw new IllegalArgumentException("dataTable shouldn't be null");
        this.dataTable = dataTable;

        Cell groupHeaderCell = createDefaultCell(dataTable);
        cells = Collections.singletonList((UIComponent) groupHeaderCell);
    }
View Full Code Here

    protected Cell createDefaultCell(DataTable dataTable) {
        FacesContext context = FacesContext.getCurrentInstance();
        List<HtmlOutputText> defaultChildList = getDefaultChildList(dataTable, context);

        String cellContentFacetName = getCellContentFacetName();
        Cell groupHeaderCell = new GroupHeaderOrFooterCell(dataTable, defaultChildList, cellContentFacetName);

        skipLeadingSelectionColumns(dataTable, groupHeaderCell);
        return groupHeaderCell;
    }
View Full Code Here

    }

    @Override
    public void setComponentProperties(FacesContext facesContext, UIComponent component) {
        super.setComponentProperties(facesContext, component);
        Cell cell = (Cell) component;

        String columnIds = getPropertyValue("columnIds");
        if (columnIds != null) {
            if (isValueReference(columnIds))
                setObjectProperty(component, "columnIds", columnIds);
            else {
                String[] ids = columnIds.split(",");
                cell.setColumnIds(ids);
            }
        }
        setValueExpressionProperty(component, "condition");

//    String span = gePropertyValue("span");
View Full Code Here

                }
                for (int i = 0, count = columnsForProcessing.size(); i < count; i++) {
                    CustomCellRenderingInfo customCellRenderingInfo = customRowRenderingInfo.getCustomCellRenderingInfo(i);
                    if (customCellRenderingInfo == null || (!(customCellRenderingInfo instanceof CustomContentCellRenderingInfo)))
                        continue;
                    Cell customCell = ((CustomContentCellRenderingInfo) customCellRenderingInfo).findTableCell(customRows);
                    if (customCell != null)
                        process(context, customCell, processAction);
                }
            }
            // </MOD-4>
View Full Code Here

        List<UIComponent> children = tableRow.getChildren();
        for (UIComponent child : children) {
            if (child instanceof Cell)
                cells.add((Cell) child);
        }
        Cell result = cells.get(tableCellDeclarationIndex);
        return result;
    }
View Full Code Here

    }

    @Override
    public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
        Column column = (Column) component;
        Cell customCell = (Cell) column.getAttributes().get(ATTR_CUSTOM_CELL);

        UIComponent cellContentsContainer = customCell != null ? customCell : column;

        Runnable exitContext =  (cellContentsContainer instanceof ContextDependentComponent)
                ? ((ContextDependentComponent) cellContentsContainer).enterComponentContext() : null;
View Full Code Here

TOP

Related Classes of org.openfaces.component.table.Cell

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.