Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package com.library.librarytest;
- import com.vaadin.ui.Alignment;
- import com.vaadin.ui.Button;
- import com.vaadin.ui.Component;
- import com.vaadin.ui.HorizontalLayout;
- import com.vaadin.ui.LoginForm;
- import com.vaadin.ui.PasswordField;
- import com.vaadin.ui.TextField;
- /**
- *
- * @author gee
- */
- public class MainLayout extends LoginForm {
- @Override
- protected Component createContent(TextField userNameField, PasswordField passwordField, Button loginButton) {
- HorizontalLayout layout = new HorizontalLayout();
- layout.setSpacing(true);
- layout.setMargin(true);
- layout.addComponent(userNameField);
- layout.addComponent(passwordField);
- layout.addComponent(loginButton);
- layout.setComponentAlignment(loginButton, Alignment.BOTTOM_LEFT);
- return layout;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement