Package org.openfaces.component.command

Examples of org.openfaces.component.command.MenuSeparator


    private static final String DEFAULT_MENU_SEPARATOR_CLASS = "o_menu_separator";
    private static final String DIV_PREFIX = "::separator";

    @Override
    public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
        MenuSeparator menuSeparator = (MenuSeparator) component;
        ResponseWriter writer = context.getResponseWriter();

        writer.startElement("li", menuSeparator);
        writeAttribute(writer, "id", menuSeparator.getClientId(context));
        writeAttribute(writer, "class", DEFAULT_LIST_ITEM_CLASS);
        writer.startElement("span", menuSeparator);
        writeAttribute(writer, "id", menuSeparator.getClientId(context) + DIV_PREFIX);

        String styleClass = Styles.getCSSClass(context, menuSeparator, menuSeparator.getStyle(), StyleGroup.regularStyleGroup(),
                menuSeparator.getStyleClass(), DEFAULT_MENU_SEPARATOR_CLASS);
        writeAttribute(writer, "class", styleClass);

        Styles.renderStyleClasses(context, menuSeparator);

        writer.endElement("span");
View Full Code Here

TOP

Related Classes of org.openfaces.component.command.MenuSeparator

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.