Package org.apache.ecs.html

Examples of org.apache.ecs.html.Head


                MENU_NAME,
                null,
                MENU_BG_IMAGE,
                MENU_SPACER_IMAGE,
                lang);
            Head head = new Head().addElement(new Link()
                .setRel("stylesheet")
                .setType("text/css")
                .setHref("smilemenu.css"));
            menuGenerator.createMenu(MENU_NAME, head, StandaloneEnvironment.standaloneZones, lang);
View Full Code Here


                .addElement(new P())
                .addElement("Your browser can't handle frames. Please update your browser!"));

            Document document = new Document().setDoctype(new Doctype.Html40Frameset()).setHtml(
                new Html().addElement(
                    new Head().addElement(new Title("Smilehouse OpenSyncro (Standalone)"))
                    .addElement(new Script(
                        "if (top.location != location) top.location.href = document.location.href;")
                        .setLanguage("JavaScript")
                        )).addElement(
                    frameset).addElement(noframes));
View Full Code Here

        }

        Document document = new Document().setDoctype(new Doctype.Html40Transitional()).setHtml(
            new Html()
                .addElement(
                    new Head().addElement(new Title("Smilehouse OpenSyncro")).addElement(
                        new Link().setRel("stylesheet").setType("text/css").setHref(
                            "smilestyle.css")))
                .addElement(body));

        res.setContentType("text/html");
View Full Code Here

        String lang = (String) session.getAttribute(SESSION_LANGUAGE_ATTR);

        Body body = getBody();

        Head head = new Head().addElement(
            new Meta().setHttpEquiv("Content-Type").setContent(getContentType())).addElement(
            tabGenerator.getStyle()).addElement(
            new Link().setRel("stylesheet").setType("text/css").setHref("smilestyle.css"));
        if(toHead != null)
            head.addElement(toHead);

        Document doc = new Document().setDoctype(new Doctype.Html40Transitional()).setHtml(
            new Html().addElement(head).addElement(
                body.addElement(tabGenerator.getTabSet(tabSetId, tabId, new ElementContainer()
                    .addElement(content), MENU_FILE, standaloneZones, lang))));
View Full Code Here

        body.addElement(new H1("ERROR!")).addElement(new PRE().addElement(Utils.getStackTrace(e))
//          .addElement(e.getCause().toString())
            );

        Document doc = new Document().setDoctype(new Doctype.Html40Transitional()).setHtml(
            new Html().addElement(new Head()).addElement(body));

        doc.output(out);
    }
View Full Code Here

     * @exception TemplateModelException.
     */
    public TemplateModel exec(List args)
        throws TemplateModelException
    {
        Head head = data.getPage().getHead();
        for (int i=0; i<args.size(); i++)
        {
            head.addElement((String)args.get(i) + "\n");
        }
        return new SimpleScalar("");
    }
View Full Code Here

     * @exception TemplateModelException.
     */
    public TemplateModel exec(List args)
        throws TemplateModelException
    {
        Head head = data.getPage().getHead();
        String returnValue = "";
        String serviceName = TurbineResources.getString("services.freemarker");
        FreeMarkerService fm = (FreeMarkerService)
            TurbineServices.getInstance().getService(serviceName);
        SimpleHash context = fm.getContext(data);

        for (int i=0; i<args.size(); i++)
        {
            String name = (String)args.get(i);
            try
            {
                head.addElement( fm.handleRequest(context, name, true) );
                head.addElement("\n");
            }
            // We cannot pass this exception, because this methods overrides
            // a method from interface defined by FreeMarker.
            catch(TurbineException te)
            {
View Full Code Here

TOP

Related Classes of org.apache.ecs.html.Head

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.