Package org.apache.ecs.xhtml

Examples of org.apache.ecs.xhtml.ul


{
    public static String getCollectionInHTML( WikiContext context, Collection coll )
    {
        XhtmlDocument doc = new XhtmlDocument("UTF-8");
       
        ul content = new ul();
       
        for( Iterator i = coll.iterator(); i.hasNext(); )
        {
            Object o = i.next();
           
            if( o instanceof WikiPage )
            {
                WikiPage p = (WikiPage)o;
                content.addElement( new li().addElement( p.getName() ) );
            }
            else if( o instanceof String )
            {
                content.addElement( new li().addElement( o.toString() ));
            }
        }

        doc.appendBody( content );
       
View Full Code Here


        StringWriter out = new StringWriter();
        t.printStackTrace( new PrintWriter( out ) );
        d.addElement( new pre( out.toString() ) );
        d.addElement( new b( "Parameters to the plugin" ) );

        ul list = new ul();
        for( Iterator<Map.Entry< String, String > > i = params.entrySet().iterator(); i.hasNext(); ) {
            Map.Entry< String, String > e = i.next();
            String key = e.getKey();

            list.addElement( new li( key + "'='" + e.getValue() ) );
        }

        d.addElement( list );

        return d.toString();
View Full Code Here

{
    public static String getCollectionInHTML( WikiContext context, Collection coll )
    {
        XhtmlDocument doc = new XhtmlDocument("UTF-8");
       
        ul content = new ul();
       
        for( Iterator i = coll.iterator(); i.hasNext(); )
        {
            Object o = i.next();
           
            if( o instanceof WikiPage )
            {
                WikiPage p = (WikiPage)o;
                content.addElement( new li().addElement( p.getName() ) );
            }
            else if( o instanceof String )
            {
                content.addElement( new li().addElement( o.toString() ));
            }
        }

        doc.appendBody( content );
       
View Full Code Here

TOP

Related Classes of org.apache.ecs.xhtml.ul

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.