Package org.apache.ecs.html

Examples of org.apache.ecs.html.Font


        // If an Action has defined a message, attempt to display it here.
        if (data.getMessage() != null)
        {
            data.getPage().getBody().addElement(new P())
                    .addElement(new Font().setColor(HtmlColor.red)
                    .addElement(data.getMessageAsHTML()));
        }

        // Now execute the Screen portion of the page.
        ConcreteElement screen = ScreenLoader.getInstance()
View Full Code Here


    public ConcreteElement doBuild(RunData data)
            throws Exception
    {
        data.getPage().getBody()
                .addElement(new B().addElement(
                        new Font().setColor(HtmlColor.green).setSize(2)
                .addElement(txt))
                .addElement(new HR().setSize(1).setNoShade(true)));

        return null;
    }
View Full Code Here

        ElementContainer body = new ElementContainer()
                .addElement(new HR().setSize(1).setNoShade(true))
                .addElement(
                    new B().addElement(
                        new Font().setColor(HtmlColor.green).setSize(
                            2).addElement(
                            txt)))
                .addElement(form);

        if (DEBUG && data.getUser() != null)
View Full Code Here

        // If an Action has defined a message, attempt to display it
        // here.
        if ( data.getMessage() != null )
        {
            data.getPage().getBody().addElement(new P())
                .addElement(new Font().setColor(HtmlColor.red)
                    .addElement(data.getMessageAsHTML()));
        }

        // Now execute the Screen portion of the page.
        ConcreteElement screen = ScreenLoader.getInstance()
View Full Code Here

        if ( data.getMessage() != null )
        {
            data.getPage().getBody()
                .addElement(new P())
                .addElement(
                    new Font().setColor(HtmlColor.red)
                        .addElement(data.getMessageAsHTML()));
        }

        params.add("template", "screens/" + fmScreen);
View Full Code Here

    public ConcreteElement doBuild( RunData data )
        throws Exception
    {
        data.getPage().getBody()
            .addElement(new B().addElement(
               new Font().setColor(HtmlColor.green).setSize(2)
                   .addElement("Turbine - A Servlet Framework for building Secure Dynamic Websites."))
            .addElement(new HR().setSize(1).setNoShade(true)));

        return null;
    }
View Full Code Here

        throws Exception
    {
        ElementContainer body = new ElementContainer()
            .addElement(new HR().setSize(1).setNoShade(true))
            .addElement(new B().addElement(
               new Font().setColor(HtmlColor.green).setSize(2)
                   .addElement("Turbine - A Servlet Framework for building Secure Dynamic Websites.")))
            .addElement( new Form( new DynamicURI ( data, "DefaultScreen", "LogoutUser", true ).toString(),
                         Form.POST ).addElement(new Input("SUBMIT", "Logout", "Logout") ) );

        if (DEBUG  &&  data.getUser() != null)
View Full Code Here

        // If an Action has defined a message, attempt to display it
        // here.
        if ( data.getMessage() != null )
        {
            data.getPage().getBody().addElement(new P())
                .addElement(new Font().setColor(HtmlColor.red)
                    .addElement(data.getMessageAsHTML()));
        }

        // Now execute the Screen portion of the page.
        ConcreteElement screen = ScreenLoader.getInstance()
View Full Code Here

        if ( data.getMessage() != null )
        {
            data.getPage().getBody()
                .addElement(new P())
                .addElement(
                    new Font().setColor(HtmlColor.red)
                        .addElement(data.getMessageAsHTML()));
        }

        params.add("template", "screens/" + fmScreen);
View Full Code Here

    public ConcreteElement doBuild( RunData data )
        throws Exception
    {
        data.getPage().getBody()
            .addElement(new B().addElement(
               new Font().setColor(HtmlColor.green).setSize(2)
                   .addElement(txt))
            .addElement(new HR().setSize(1).setNoShade(true)));

        return null;
    }
View Full Code Here

TOP

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

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.