Package org.openfaces.renderkit

Examples of org.openfaces.renderkit.TableRenderer


        if (resources.size() > 0) {
            int dayCount = getDayCount();
            final int colCount = 1 + dayCount * (resources.size() > 0 ? resources.size() : 1);
            writer.startElement("tr", timetableView);
            writer.startElement("td", timetableView);
            new TableRenderer(clientId + Rendering.CLIENT_ID_SUFFIX_SEPARATOR + "resourceHeaders", 0, 0, 0, "o_resourceHeadersTable") {
                @Override
                protected void encodeCellContents(FacesContext context, ResponseWriter writer, UIComponent component,
                                                  int rowIndex, int colIndex) throws IOException {
                    if (colIndex == 0 || colIndex == colCount)
                        return;
View Full Code Here


        writer.writeAttribute("id", clientId + "::scroller", null);
        writer.writeAttribute("class", "o_timetableView_scroller", null);

        int colCount = 1 + (resources.size() > 0 ? resources.size() : 1) * getDayCount();

        new TableRenderer(clientId + Rendering.CLIENT_ID_SUFFIX_SEPARATOR + "table", 0, 0, 0, "o_timetableView_table") {

            protected void encodeTFoot(ResponseWriter writer, UIComponent component) throws IOException {
                writer.startElement("tfoot", component);
                writer.writeAttribute("id", clientId + "::hiddenArea", null);
                writer.writeAttribute("style", "display: none", null);
View Full Code Here

                {
                        null
                }
        };

        new TableRenderer() {

            @Override
            protected void writeTableAttributes(FacesContext context, ResponseWriter writer, UIComponent component) throws IOException {
                super.writeTableAttributes(context, writer, component);
                writer.writeAttribute("class", "o_fullWidthAndHeight", null);
View Full Code Here

                return null;
            }

            @Override
            public void encodeBegin(FacesContext context) throws IOException {
                new TableRenderer(idPrefix + "Fields", 0, 0, 0, null).render(dialog, components);
            }
        };

    }
View Full Code Here

        calendar.add(Calendar.DATE, 1 - dayOfWeek);

        writer.startElement("tr", timetableView);
        writer.startElement("td", timetableView);

        new TableRenderer(clientId + Rendering.CLIENT_ID_SUFFIX_SEPARATOR + "weekdayHeaders", 0, 0, 0, "o_weekdayHeadersTable")
                .render(timetableView, true, 1, 9);

        writer.endElement("td");
        writer.endElement("tr");
    }
View Full Code Here

        calendar.add(Calendar.DATE, 1 - dayOfWeek);

        writer.startElement("tr", timetableView);
        writer.startElement("td", timetableView);

        new TableRenderer(clientId + Rendering.CLIENT_ID_SUFFIX_SEPARATOR + "weekdayHeaders", 0, 0, 0, "o_weekdayHeadersTable")
                .render(timetableView, true, 1, 8);

        writer.endElement("td");
        writer.endElement("tr");
    }
View Full Code Here

        writer.writeAttribute("style""overflow : visible; overflow-x : visible; overflow-y = hidden;", null);
        writer.writeAttribute("class", "o_timetableView_scroller", null);
        renderExpandedDayView(context, timetableView);
        int colCount = 7;

        new TableRenderer(clientId + Rendering.CLIENT_ID_SUFFIX_SEPARATOR + "table", 0, 0, 0, "o_timetableView_table") {

            protected void encodeTFoot(ResponseWriter writer, UIComponent component) throws IOException {
                writer.startElement("tfoot", component);
                writer.writeAttribute("id", clientId + "::hiddenArea", null);
                writer.writeAttribute("style", "display: none", null);
View Full Code Here

TOP

Related Classes of org.openfaces.renderkit.TableRenderer

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.