Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.crud.views;
- import com.vaadin.navigator.View;
- import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
- import com.vaadin.ui.Button;
- import com.vaadin.ui.HorizontalLayout;
- import com.vaadin.ui.PasswordField;
- import com.vaadin.ui.TextField;
- import com.vaadin.ui.VerticalLayout;
- public class SettingsView extends VerticalLayout implements View{
- private final TextField email = new TextField("Your email");
- private final TextField username = new TextField("your name");
- private final PasswordField password = new PasswordField("New Password");
- private final Button save = new Button("Save Changes");
- private final Button cancel = new Button("Cancel Changes");
- private final Button projects = new Button("Your projects");
- public SettingsView(){
- super();
- this.addComponent(email);
- this.addComponent(username);
- this.addComponent(password);
- HorizontalLayout buttons = new HorizontalLayout(this.save,this.cancel,this.projects);
- this.addComponent(buttons);
- buttons.setWidth("450px");
- }
- public void enter(ViewChangeEvent event){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement