Java tutorial
/* * 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.squadd.UI; import com.vaadin.ui.Button; import com.vaadin.ui.Button.ClickListener; import com.vaadin.ui.DateField; import com.vaadin.ui.FormLayout; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.TextField; /** * * @author SharkNado */ public class EditInfoLayout extends FormLayout { private Button cancel; private Button submit; private DateField date; private TextField grName; private TextField descr; private TextField place; public EditInfoLayout() { cancel = new Button("cancel"); submit = new Button("submit"); date = new DateField("New Date"); grName = new TextField("New Group Name"); descr = new TextField("New Description"); place = new TextField("New Place"); configureLayout(); } private void configureLayout() { addComponents(grName, place, date, descr); HorizontalLayout hor = new HorizontalLayout(cancel, submit); hor.setSpacing(true); addComponents(hor); } public Button getCancel() { return cancel; } public Button getSubmit() { return submit; } public DateField getDate() { return date; } public TextField getGrName() { return grName; } public TextField getDescr() { return descr; } public TextField getPlace() { return place; } public void setCancel(Button cancel) { this.cancel = cancel; } public void setSubmit(Button submit) { this.submit = submit; } public void setDate(DateField date) { this.date = date; } public void setGrName(TextField grName) { this.grName = grName; } public void setDescr(TextField descr) { this.descr = descr; } public void setPlace(TextField place) { this.place = place; } }