Package org.openfaces.renderkit.table

Examples of org.openfaces.renderkit.table.TableStructure


        final String clientId = fileAttachments.getClientId(context);
        ChildData childData = getChildData(fileAttachments);
        writer.startElement("table", fileAttachments);
        writer.writeAttribute("id", clientId + ATTACHMENTS_LIST_ID, null);

        TableStructure tableStructure = childData.getTableStructure();
        TableHeader tableHeader = tableStructure.getHeader();
        if (tableHeader.isContentSpecified()) {
            tableHeader.render(context, null);
        }
        writer.startElement("tbody", fileAttachments);
        renderRows(context, fileAttachments, childData, fileAttachments.getValue());
        writer.endElement("tbody");

        TableFooter tableFooter = tableStructure.getFooter();
        if (tableFooter.isContentSpecified()) {
            tableFooter.render(context, null);
        }
        writer.endElement("table");
    }
View Full Code Here


                childComponents.add(component.getParent());
            }
        }

        FileAttachmentsTableStyles tableStyles = new FileAttachmentsTableStyles(fileAttachmentsComponent, childComponents);
        TableStructure tableStructure = new TableStructure(fileAttachmentsComponent, tableStyles);

        childData = new ChildData(tableStructure, childComponents);
        return childData;
    }
View Full Code Here

        DropDownFieldBase dropDownField = (DropDownFieldBase) dropDown;

        DropDownPopup popup = dropDownField.getPopup();

        ScriptBuilder buf = new ScriptBuilder();
        TableStructure tableStructure = popup.getChildData().getTableStructure();
        buf.initScript(context, dropDownField, "O$.DropDownField._init",
                dropDownField.getTimeout(),
                dropDownField.getListAlignment(),

                Styles.getStyleClassesStr(context, dropDownField, dropDownField.getRolloverListItemStyle(),
                        dropDownField.getRolloverListItemClass(), DefaultStyles.getDefaultSelectionStyle(), StyleGroup.rolloverStyleGroup()),

                getItemValuesArray(getItemValues(dropDown)),
                dropDownField.getCustomValueAllowed(),
                dropDownField.isRequired(),
                dropDownField.getSuggestionMode(),
                dropDownField.getSuggestionDelay(),
                dropDownField.getSuggestionMinChars(),
                isManualListOpeningAllowed(dropDownField),
                dropDownField.getAutoComplete(),
                dropDownField.getAttributes().get(ATTR_TOTAL_ITEM_COUNT),
                dropDownField.getAttributes().get(ATTR_PAGE_SIZE),

                tableStructure.getInitParam(context, POPUP_TABLE_DEFAULT_STYLES),
                dropDownField.isCachingAllowed(),
                getItemPresentationColumn(dropDown),
                dropDownField.getChangeValueOnSelect()
        );
        popup.resetChildData();
View Full Code Here

                    !(component instanceof OUIClientAction) && !Rendering.isA4jSupportComponent(component))
                childComponents.add(component);
        }

        DropDownFieldTableStyles tableStyles = new DropDownFieldTableStyles(dropDownField, childComponents);
        TableStructure tableStructure = new TableStructure(dropDownField, tableStyles);

        childData = new ChildData(tableStructure, childComponents);
        return childData;
    }
View Full Code Here

        ChildData childData = getChildData();

        TableUtil.writeColumnTags(context, dropDownField, childData.getColumns());

        TableStructure tableStructure = childData.getTableStructure();
        TableHeader tableHeader = tableStructure.getHeader();
        if (tableHeader.isContentSpecified()) {
            tableHeader.render(context, null);
        }

        writer.startElement("tbody", this);
        if (dropDownList != null)
            renderRows(context, dropDownField, childData, dropDownList, 0);
        writer.endElement("tbody");

        TableFooter tableFooter = tableStructure.getFooter();
        if (tableFooter.isContentSpecified()) {
            tableFooter.render(context, null);
        }
    }
View Full Code Here

TOP

Related Classes of org.openfaces.renderkit.table.TableStructure

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.