Package com.dodo.blog

Examples of com.dodo.blog.WebApplication


{
    public UserInfoPanel()
    {
        setClassName( "user-info-panel" );

        WebApplication webApplication = WebApplication.get();
        Account account = webApplication.getLoggedInAccount();
        if ( account != null )
        {
            Anchor link = new Anchor( account.getUserInfo(), MyAccount.class );
            add( link );
        }
        else
        {
            add( new Span( localize(
                    "label.registerOrLogin",
                    webApplication.getPathByPageClass( Registration.class ),
                    webApplication.getPathByPageClass( Login.class ) ) ) );
        }
    }
View Full Code Here

TOP

Related Classes of com.dodo.blog.WebApplication

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.