Package org.dekka.component.objectInterface

Examples of org.dekka.component.objectInterface.UIHeader


        if (!RenderKitUtils.assertValid(context, component)) {
            return;
        }

        final ResponseWriter writer = context.getResponseWriter();
        final UIHeader uih = (UIHeader) component;
        /* Test if resources needed by the web app are present in the context */
        if (uih.getChildren().size() == 0) {
            final UIResourceLoader rl = new UIResourceLoader();
            uih.getChildren().add(rl);
        }

        writer.startElement("head", component);

        /* Write attributes */
        if (uih.isDir()) {
            writer.writeAttribute("dir", "RTL", null);
        }

        writer.writeAttribute("id", uih.getClientId(context), null);

        if (uih.getLang() != null) {
            writer.writeAttribute("lang", uih.getLang(), null);
        }

        if (uih.getProfile() != null) {
            writer.writeAttribute("profile", uih.getProfile(), null);
        }

        writer.startElement("title", component);
        /* Write title */
        if (uih.getTitle() != null) {
            writer.write(uih.getTitle());
        } else {
            writer.write(DEFAULT_TITLE);
        }
        writer.endElement("title");

View Full Code Here

TOP

Related Classes of org.dekka.component.objectInterface.UIHeader

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.