Skip to content

Commit b2727cc

Browse files
committed
Add TextField with fieldAddonLeft to DemoForm
Add TextField with fieldAddonLeft sample
1 parent ba90eed commit b2727cc

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

demo/src/main/java/io/asfjava/ui/demo/screen/DemoForm.java

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313

1414
public class DemoForm implements Serializable {
1515

16+
17+
@TextField(title = "Pesonal Website",fieldAddonLeft="http://", description = "This is TextField with fieldAddonLeft")
18+
private String webSite;
19+
20+
// @Tab(title = "Contact", index = 2)
21+
@Password(title = "Password", placeHolder = "Please set you password", description = "This is password")
22+
private String password;
23+
1624
@Tab(title = "Info", index = 1)
1725
@TextField(title = "First Name", placeHolder = "Your first name", description = "This is a description for your first name field")
1826
private String firstName;
@@ -29,9 +37,6 @@ public class DemoForm implements Serializable {
2937
@Number(title = "Number of children", placeHolder = "Number of children", description = "This is a number")
3038
private Integer number;
3139

32-
// @Tab(title = "Contact", index = 2)
33-
@Password(title = "Password", placeHolder = "Please set you password", description = "This is password")
34-
private String password;
3540

3641
@Tab(title = "Info", index = 1)
3742
@ComboBox(title = "Gender", titleMap = GenderTitleMap.class)
@@ -72,6 +77,14 @@ public void setEmail(String eMail) {
7277
public String getEmail() {
7378
return email;
7479
}
80+
81+
public void setWebSite(String website) {
82+
this.webSite = website;
83+
}
84+
85+
public String getWebSite() {
86+
return webSite;
87+
}
7588

7689
public void setLastName(String lastName) {
7790
this.lastName = lastName;

0 commit comments

Comments
 (0)