private void addLoginButton ( ) { VaadinSession session = VaadinSession . getCurrent ( ) ; if ( session != null ) { boolean kickstarter = Helper . isKickstarter ( session ) ; if ( ! kickstarter ) { addComponent ( lblUserName ) ; setComponentAlignment ( lblUserName , Alignment . MIDDLE_RIGHT ) ; addComponent ( btLogin ) ; setComponentAlignment ( btLogin , Alignment . MIDDLE_RIGHT ) ; } } }
Adds the login button + login text to the toolbar . This is only happened when the gui is not started via the kickstarter .