Package org.apache.ecs

Examples of org.apache.ecs.ElementContainer.addElement()


            ElementContainer content = new ElementContainer();

            //content.addElement( this.getStatus() );
            //content.addElement( this.getFeedCount() );
            content.addElement( table );
            //content.addElement( this.getForm() );

            return content;

        } catch ( Throwable t ) {
View Full Code Here


        } catch ( Throwable t ) {
            logger.error("Throwable", t);
            return new StringElement( "Can't use this provider: " + t.getMessage() );
        }
       
        ec.addElement( "Your article '" + title + "' has been posted within '" + topic + "'" );
       
        return ec;
    }
   
    /**
 
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 ) {
           
View Full Code Here

            P row = new P().addElementnew A( uri.toString() ).addElement( title ) )
                           .addElement( " ( " )
                           .addElement( new A( this.getBookmarklet( provider, rundata ) ).addElement( "Bookmarklet" ) )
                           .addElement( " ) " );
                          
            root.addElement( row );
           
           
        }
       
        return root;
View Full Code Here

        if ( options.length > 0 ) {

            ElementContainer alloptions = new ElementContainer();
            for (int i = 0; i < options.length; ++i) {
                alloptions.addElement( options[i] );
            }

            finalTitle.addElement( new TD()
                .setBgColor( this.getTitleColor() )
                .setNoWrap( true )
View Full Code Here

       the html page.
    */  
    public ConcreteElement getWMLContent( RunData rundata ) {
        ElementContainer ec = new ElementContainer();
        try {
            ec.addElement(new org.apache.ecs.wml.P()
                .addElement(
                            new org.apache.ecs.wml.A(
                                                     URILookup.getURI( URILookup.TYPE_HOME,
                                                                       URILookup.SUBTYPE_MAXIMIZE,
                                                                       getName(),
View Full Code Here

        Table t = new Table()
                       .setWidth( this.getWidth() )
                       .setCellPadding( this.getPadding() )
                       .setAlign("center");

        base.addElement( t );

        ElementContainer[][] elements = new ElementContainer[rows][cols];

        for( int i = 0; i < rows; i++ )  {
            for ( int j = 0 ; j < cols; j++ ) {
View Full Code Here

       
        ConcreteElement nbsp = new ClearElement( "&nbsp;" );

        //make sure the user hasn't voted before.
        if ( this.hasVoted( rundata ) ) {
            ec.addElement( new I().addElement( "You have already voted!" ) );
            ec.addElement( new BR() );
        }
       
       
        //add the question to the Portlet so that he user knows what they just
View Full Code Here

        ConcreteElement nbsp = new ClearElement( "&nbsp;" );

        //make sure the user hasn't voted before.
        if ( this.hasVoted( rundata ) ) {
            ec.addElement( new I().addElement( "You have already voted!" ) );
            ec.addElement( new BR() );
        }
       
       
        //add the question to the Portlet so that he user knows what they just
        //voted on.
View Full Code Here

        }
       
       
        //add the question to the Portlet so that he user knows what they just
        //voted on.
        ec.addElement( new B().addElement( this.getQuestion().getTitle() ) );       
       
        Table table = new Table();
       
        for( int i = 0; i < answers.length; ++i ) {
           
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.