Package org.apache.ecs.html

Examples of org.apache.ecs.html.P


    /**
    @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
    */
    private ConcreteElement getFeedCount() {

        return new P().addElement( new B( "Current number of feeds:  ") )
                      .addElement( Integer.toString( FeedDaemon.getCount() ) );

    }
View Full Code Here


    */
    public ConcreteElement getProviders( RunData rundata ) {
       
        ElementContainer root = new ElementContainer();
       
        root.addElement( new P().addElement( "Select a content provider: " ) );

        Vector v = JetspeedResources.getVector( JetspeedResources.CONTENT_PROVIDER_LIST_KEY );
       
        for ( int i = 0; i < v.size(); ++i ) {
           
            String provider = (String)v.elementAt( i );
           
            String title = JetspeedResources.getString( "content.provider." + provider + ".title" );

            DynamicURI uri = new DynamicURI( rundata );
            uri.addQueryData( rundata.getParameters() );
            uri.addQueryData( PROVIDER_NAME_KEY, provider );

            P row = new P().addElementnew A( uri.toString() ).addElement( title ) )
                           .addElement( " ( " )
                           .addElement( new A( this.getBookmarklet( provider, rundata ) ).addElement( "Bookmarklet" ) )
                           .addElement( " ) " );
                          
            root.addElement( row );
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.
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()));
        }
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.
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()));
        }
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.
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.
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.
View Full Code Here

TOP

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

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.