Package com.dodo.blog.ui.component.container

Examples of com.dodo.blog.ui.component.container.Th


        Tr header = new Tr();
        add( header );

        for ( TableHeader tableHeader : tableHeaders )
        {
            Th col = new Th();
            header.add( col );

            if ( tableHeader.getName() != null )
            {
                Anchor a = new Anchor();
                a.setAttribute( ATTR_REPEATER_ID, getId() );
                a.addClassName( CLASS_REPEATER_LINK );
                a.setInnerHtml( tableHeader.getLabel() );

                OrderDirection orderDirection = OrderDirection.ASC;
                if ( tableHeader.getName().equals( getOrderBy() ) )
                {
                    col.addClassName( "sort" );
                    col.addClassName( getOrderDirection().name().toLowerCase() );
                    if ( getOrderDirection() == OrderDirection.ASC )
                    {
                        orderDirection = OrderDirection.DESC;
                    }
                }
                a.setHref( createUrl( getFirstRow(), getMaxRows(), tableHeader.getName(), orderDirection ) );

                col.add( a );
            }
            else
            {
                col.setInnerHtml( tableHeader.getLabel() );
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.dodo.blog.ui.component.container.Th

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.