Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

vaadin:customize_login [2018/02/06 13:11]
admin created
vaadin:customize_login [2019/08/05 14:32] (current)
admin
Line 11: Line 11:
 public class CustomLogin extends WebLogin public class CustomLogin extends WebLogin
 { {
-        ​private UIIcon icoLogo;+    ​private UIIcon icoLogo;
         ​         ​
     @Override     @Override
-        ​protected void createLogin() +    ​protected void createLogin() 
-        +    
-                super.createLogin();​+        super.createLogin();​
                 ​                 ​
         Label lblTitle = getTitleLabel();​         Label lblTitle = getTitleLabel();​
Line 30: Line 30:
         Component logo = (Component)icoLogo.getResource();​         Component logo = (Component)icoLogo.getResource();​
  
-            ​layout.addComponent(logo);​ +        ​layout.addComponent(logo);​ 
-            layout.setComponentAlignment(logo,​ Alignment.MIDDLE_LEFT);​ +        layout.setComponentAlignment(logo,​ Alignment.MIDDLE_LEFT);​ 
-        }+    }
 } }
 </​file>​ </​file>​
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information