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

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


public class NavigationPanel
        extends Nav
{
    public NavigationPanel( Class<? extends Page>... pages )
    {
        Ul menu = new Ul();
        add( menu );

        for ( Class<? extends Page> page : pages )
        {
            Li menuItem = new Li();
            Anchor link = new Anchor( localize( "menu." + page.getSimpleName().toLowerCase() ), page );
            menuItem.add( link );
            if ( WebApplication.get().getPageClassByPath( RequestCycle.get().getRequest().getServletPath() ) == page )
            {
                link.setClassName( "selected" );
            }

            menu.add( menuItem );
        }

        // TODO: implement search
        Form form = new Form( "search-form" );
        form.add( new TextBox( "search" ).setPlaceHolder( localize( "placeholder.search" ) ) );
View Full Code Here

TOP

Related Classes of com.dodo.blog.ui.component.container.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.