Commits

Alireza Savand committed 44b1e40

PersonForm initiald for the contact =))

Comments (0)

Files changed (1)

src/com/example/advanceaddressbook/ui/PersonForm.java

+package com.example.advanceaddressbook.ui;
+
+import com.vaadin.ui.Button;
+import com.vaadin.ui.Form;
+import com.vaadin.ui.HorizontalLayout;
+import com.vaadin.ui.TextField;
+
+public class PersonForm extends Form {
+	private Button save = new Button("Save");
+	private Button cancel = new Button("Cancel");
+	
+	public PersonForm() {
+		addField("First Name", new TextField("First Name"));
+		addField("Last Name", new TextField("Last Name"));
+		HorizontalLayout footer = new HorizontalLayout();
+		footer.setSpacing(true);
+		footer.addComponent(save);
+		footer.addComponent(cancel);
+		setFooter(footer);
+	}
+}