Package org.apache.ecs.html

Examples of org.apache.ecs.html.Body


     */
    public Email setMsg(String msg)
            throws MessagingException
    {
        setTextMsg(msg);
        setHtmlMsg(new ElementContainer(new Html(new Body()
                .addElement(new PRE(msg)))).toString());
        return this;
    }
View Full Code Here


                    .addElement(
                        new Span().addElement(
                            new A("Login?logout=yes", "[" + labels.getLabel("logout") + "]")
                            .setTarget("_top")).setClass("syncroText")));

            Body body = new Body().addElement(new Table()
                .setWidth("100%")
                .setBorder(0)
                .setCellPadding(0)
                .setCellSpacing(0)
                .addElement(topRow)
                .addElement(menuRow));
            body.addAttribute("leftmargin", "0");
            body.addAttribute("topmargin", "0");
            body.addAttribute("marginwidth", "0");
            body.addAttribute("marginheight", "0");

            Document document = new Document()
                .setDoctype(new Doctype.Html40Transitional())
                .setHtml(new Html().addElement(head).addElement(body));
View Full Code Here

                    .setScrolling(Frame.auto)
                    .setFrameBorder(false)
                    .setNoResize(true));
            frameset.addAttribute("border", "0");

            NoFrames noframes = new NoFrames().addElement(new Body()
                .setBgColor(HtmlColor.white)
                .setText(HtmlColor.black)
                .addElement(new B().addElement("Smilehouse OpenSyncro"))
                .addElement(new P())
                .addElement("Your browser can't handle frames. Please update your browser!"));
View Full Code Here

                    new TD().setAlign(AlignType.RIGHT).addElement(new B("Language"))).addElement(
                    new TD().addElement(languageSelect)))
            .addElement(
                new TR().addElement(new TD().setColSpan(2).setAlign(AlignType.CENTER).addElement(
                    new HR()).addElement(new Input(Input.SUBMIT, "login", "Login"))));
        Body body = new Body().addElement(getBox("pics/tab/", new Form(
            "Login",
            Form.POST,
            Form.ENC_DEFAULT).addElement(table), "Smilehouse OpenSyncro Login"));

        // --------------
        // Message pop up
        // --------------
        if(message != null) {
            body.addElement(new Script().setLanguage("JavaScript").addElement(
                "alert('" + message + "')"));
        }

        Document document = new Document().setDoctype(new Doctype.Html40Transitional()).setHtml(
            new Html()
View Full Code Here

            }
        }
    }

    private Body getBody() {
        Body body = new Body();
        body.setOnLoad("if(parent.nav && parent.nav.createMenus) parent.nav.createMenus()");
        return body;
    }
View Full Code Here

                           PrintWriter out,
                           HttpSession session) throws Exception {

        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))));
        doc.output(out);
    }
View Full Code Here

                    .addElement(content), MENU_FILE, standaloneZones, lang))));
        doc.output(out);
    }

    public void outputErrorPage(Throwable e, PrintWriter out) {
        Body body = getBody();
        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));
View Full Code Here

     */
    public Email setMsg(String msg)
            throws MessagingException
    {
        setTextMsg(msg);
        setHtmlMsg(new ElementContainer(new Html(new Body()
                .addElement(new PRE(msg)))).toString());
        return this;
    }
View Full Code Here

     */
    public Email setMsg(String msg)
        throws MessagingException
    {
        setTextMsg(msg);
        setHtmlMsg(new ElementContainer(new Html(new Body()
            .addElement(new PRE(msg)))).toString());
        return this;
    }
View Full Code Here

     */
    public Email setMsg(String msg)
        throws MessagingException
    {
        setTextMsg(msg);
        setHtmlMsg(new ElementContainer(new Html(new Body()
            .addElement(new PRE(msg)))).toString());
        return this;
    }
View Full Code Here

TOP

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

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.