Examples of encodeAll()


Examples of org.openfaces.component.command.PopupMenu.encodeAll()

        writer.endElement("tr");
        writer.endElement("table");

        PopupMenu columnMenu = (PopupMenu) component;
        columnMenu.setStandalone(true);
        columnMenu.encodeAll(context);

        // todo: move item identification responsibility to the items themselves
        MenuItem sortAscMenuItem = null, sortDescMenuItem = null, hideColumnMenuItem = null,
                groupByColumnMenuItem = null, removeFromGroupingMenuItem = null, cancelGroupingMenuItem = null,
                resetSortingMenuItem = null;
View Full Code Here

Examples of org.openfaces.component.input.DateChooserPopup.encodeAll()

            }
        }

        popup.setCalendar(c);

        popup.encodeAll(context);
        Rendering.encodeClientActions(context, component);
    }

    protected InitScript renderInitScript(FacesContext context, DropDownComponent dropDown) throws IOException {
        DateChooser dc = (DateChooser) dropDown;
View Full Code Here

Examples of org.openfaces.component.input.DropDownPopup.encodeAll()

            dropDownField.getAttributes().remove(ITEM_VALUES_ATTR_NAME);
        }

        DropDownPopup popup = dropDownField.getPopup();
        popup.setDropDownList(items);
        popup.encodeAll(context);
        Rendering.encodeClientActions(context, uiComponent);

        dropDownField.getAttributes().put(ATTR_TOTAL_ITEM_COUNT, totalItemCount);
        dropDownField.getAttributes().put(ATTR_PAGE_SIZE, pageSize);
    }
View Full Code Here

Examples of org.openfaces.component.output.DynamicImage.encodeAll()

        dynamicImage.setHeight(chart.getHeight());
        copyAttributes(dynamicImage, chart, "onclick", "ondblclick", "onmousedown", "onmouseup",
                "onmousemove", "onmouseover", "onmouseout");

        dynamicImage.setImageType(ImageType.PNG);
        dynamicImage.encodeAll(facesContext);
        chart.setEntityIndex(oldEntityIndex);
        if (map != null) {
            Resources.renderJSLinkIfNeeded(facesContext, Resources.utilJsURL(facesContext));
            Resources.renderJSLinkIfNeeded(facesContext, Resources.internalURL(facesContext, "chart/chart.js"));
        }
View Full Code Here

Examples of org.openfaces.component.panel.LayeredPane.encodeAll()

        writer.writeAttribute("class", "o_timetableView_tableRow", null);
        writer.startElement("td", timetable);
        writer.writeAttribute("style", "height: 100%", null);

        LayeredPane layeredPane = getLayeredPane(timetable);
        layeredPane.encodeAll(context);

        List<String> viewIds = new ArrayList<String>();
        for (UIComponent c : layeredPane.getChildren()) {
            SubPanel subPanel = (SubPanel) c;
            if (subPanel.getChildCount() != 1) throw new IllegalStateException();
View Full Code Here

Examples of org.openfaces.component.select.SelectBooleanCheckbox.encodeAll()

            if (selection instanceof HierarchicalNodeSelection) {
                checkbox.setTriStateAllowed(true);
                checkbox.setStateList(Arrays.asList(SelectBooleanCheckbox.SELECTED_STATE, SelectBooleanCheckbox.UNSELECTED_STATE));
            }
            checkbox.setSelected(false);
            checkbox.encodeAll(context);

        } else {
            writer.startElement("input", component);
            writer.writeAttribute("type", selectionMode != AbstractTableSelection.Mode.SINGLE ? "checkbox" : "radio", null);
            Styles.renderStyleClasses(context, component);
View Full Code Here

Examples of org.openfaces.component.select.TabSet.encodeAll()

        } else {
            innerTabSet = tabbedPane.getTabSet();
        }
        initInnerTabSet(tabbedPane, innerTabSet, subPanels, isMirrorTabSet);

        innerTabSet.encodeAll(context);
    }

    private void initInnerTabSet(TabbedPane tabbedPane, TabSet innerTabSet, List<SubPanel> subPanels,
                                 boolean isMirrorTabSet) {
        List<UIComponent> tabs = new ArrayList<UIComponent>();
View Full Code Here

Examples of org.openfaces.component.table.ExpansionToggle.encodeAll()

            writer.writeAttribute("style", indentStyle, null);

        if (nodeHasChildren) {
            Components.generateIdIfNotSpecified(treeColumn);
            ExpansionToggle expansionToggle = treeColumn.getExpansionToggle();
            expansionToggle.encodeAll(context);
        } else
            writer.writeAttribute("class", indentClass, null);

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

Examples of org.openfaces.component.table.RowGrouping.encodeAll()

        DataTable dataTable = (DataTable) table;

        RowGrouping rowGrouping = dataTable.getRowGrouping();
        if (rowGrouping != null)
            rowGrouping.encodeAll(context);
    }

    @Override
    public void decode(FacesContext context, UIComponent uiComponent) {
        super.decode(context, uiComponent);
View Full Code Here

Examples of org.openfaces.component.window.Confirmation.encodeAll()

                confirmation.setModal(true);
                confirmation.setWidth("400px");
                confirmation.setHeight("160px");
                confirmation.setModalLayerStyle("background: black; filter: alpha(opacity=50); opacity: .50;");
            }
            confirmation.encodeAll(context);
            String clientId = confirmation.getClientId(context);
            String confirmationId = (clientId != null)
                    ? clientId
                    : confirmation.getId();
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.