1
1
package io .asfjava .ui .demo .screen ;
2
2
3
3
import java .io .Serializable ;
4
- import java .util .Date ;
5
4
6
5
import io .asfjava .ui .core .form .ComboBox ;
6
+ import io .asfjava .ui .core .form .TextArea ;
7
7
import io .asfjava .ui .core .form .TextField ;
8
8
9
9
public class DemoForm implements Serializable {
10
10
11
- @ TextField (title = "First Name" ,placeHolder = "Your first name" )
11
+ @ TextField (title = "First Name" , placeHolder = "Your first name" , description = "This is a description for your first name field " )
12
12
private String firstName ;
13
13
14
- @ TextField (title = "Last Name" ,placeHolder = "Your last name" )
14
+ @ TextField (title = "Last Name" , placeHolder = "Your last name" )
15
15
private String lastName ;
16
-
17
- @ ComboBox (title = "Gender" ,values ={ "Male" ,"Female" })
16
+
17
+ @ ComboBox (title = "Gender" , values = { "Male" , "Female" })
18
18
private String gender ;
19
19
20
- private Date birthDate ;
20
+ @ TextArea (title = "Address" , placeHolder = "Fill your address please" , description = "This is textarea" )
21
+ private String address ;
21
22
22
23
public String getFirstName () {
23
24
return firstName ;
@@ -35,16 +36,16 @@ public void setLastName(String lastName) {
35
36
this .lastName = lastName ;
36
37
}
37
38
38
- public Date getBirthDate () {
39
- return birthDate ;
39
+ public String getGender () {
40
+ return gender ;
40
41
}
41
42
42
- public void setBirthDate ( Date birthDate ) {
43
- this . birthDate = birthDate ;
43
+ public String getAddress ( ) {
44
+ return address ;
44
45
}
45
-
46
- public String getGender ( ) {
47
- return gender ;
46
+
47
+ public void setAddress ( String address ) {
48
+ this . address = address ;
48
49
}
49
50
50
51
private static final long serialVersionUID = -5073515619469444978L ;
0 commit comments