package io.asfjava.ui.demo.screen;

import java.io.Serializable;

import io.asfjava.ui.core.form.ComboBox;
import io.asfjava.ui.core.form.RadioBox;
import io.asfjava.ui.core.form.TextArea;
import io.asfjava.ui.core.form.TextField;
import io.asfjava.ui.core.form.Password;
import io.asfjava.ui.core.form.Number;

public class DemoForm implements Serializable {

	@TextField(title = "First Name", placeHolder = "Your first name", description="This is a description for your first name field")
	private String firstName;

	@TextField(title = "Last Name", placeHolder = "Your last name")
	private String lastName;
	
	@TextField(title = "eMail",placeHolder = "Your email", pattern ="^\\S+@\\S+$", validationMessage="Your mail must be in this format jhondoe@example.com", description="This is Text Field with pattern and validation message"
)
	private String email;
	
	@Number(title = "Number of children", placeHolder = "Number of children", description = "This is a number")
	private Integer number;
	
	@Password(title = "Password", placeHolder = "Please set you password", description = "This is password")
	private String password;
	
	@ComboBox(title = "Gender", values = { "Male", "Female" })
	private String gender;
	
	
	@RadioBox(title = "Civil State" , titleMap = CivilStateTitelsMap.class)
	private String civilState;

	@TextArea(title = "Address", placeHolder = "Fill your address please", description = "This is textarea")
	private String address;
	


	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setEmail(String eMail) {
		this.email = eMail;
	}

	public String getEmail() {
		return email;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}
	
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getGender() {
		return gender;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public String getCivilState() {
		return civilState;
	}

	public void setCivilState(String civilState) {
		this.civilState = civilState;
	}

	private static final long serialVersionUID = -5073515619469444978L;
}

@@ -1448,16 +1448,116 @@
 ress;%0A%09%0A
+%09@CheckBox(title=%22Color%22,values=%7B%22red%22,%22bleu%22,%22green%22%7D,defaultvalue=%22red%22)%0A%09private String color;%0A%09%0A
 %0A%0A%09publi

Update DemoForm