You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: demo/src/main/java/io/asfjava/ui/demo/screen/DemoForm.java
+30-123
Original file line number
Diff line number
Diff line change
@@ -2,148 +2,55 @@
2
2
3
3
importjava.io.Serializable;
4
4
5
-
importio.asfjava.ui.core.form.CheckBox;
6
-
importio.asfjava.ui.core.form.ComboBox;
7
-
importio.asfjava.ui.core.form.Number;
8
-
importio.asfjava.ui.core.form.Password;
9
-
importio.asfjava.ui.core.form.RadioBox;
5
+
importio.asfjava.ui.core.form.Index;
10
6
importio.asfjava.ui.core.form.Tab;
11
-
importio.asfjava.ui.core.form.TextArea;
12
7
importio.asfjava.ui.core.form.TextField;
13
8
14
9
publicclassDemoFormimplementsSerializable {
15
10
16
-
17
-
@TextField(title = "Pesonal Website",fieldAddonLeft="http://", description = "This is TextField with fieldAddonLeft")
18
-
privateStringwebSite;
19
-
20
-
@TextField(title = "Your Github Mail",fieldAddonRight="@github.com", description = "This is TextField with fieldAddonRight")
21
-
privateStringgitHub;
22
-
23
-
// @Tab(title = "Contact", index = 2)
24
-
@Password(title = "Password", placeHolder = "Please set you password", description = "This is password")
25
-
privateStringpassword;
11
+
@Index(1)
12
+
@TextField(title = "index 1")
13
+
privateStringindex1;
26
14
27
-
@Tab(title = "Info", index = 1)
28
-
@TextField(title = "First Name", placeHolder = "Your first name", description = "This is a description for your first name field")
29
-
privateStringfirstName;
15
+
@Tab(index = 2, title = "Tab2")
16
+
@Index(0)
17
+
@TextField(title = "index 2")
18
+
privateStringindex2;
30
19
31
-
// @Tab(title = "Info", index = 1)
32
-
@TextField(title = "Last Name", placeHolder = "Your last name")
33
-
privateStringlastName;
20
+
@Tab(index = 3, title = "Tab1")
21
+
@Index(2)
22
+
@TextField(title = "Tab1 f3 index 2")
23
+
privateStringindex3;
34
24
35
-
@Tab(title = "Contact", index = 2)
36
-
@TextField(title = "eMail", placeHolder = "Your email", pattern = "^\\S+@\\S+$", validationMessage = "Your mail must be in this format [email protected]", description = "This is Text Field with pattern and validation message")
37
-
privateStringemail;
25
+
@Tab(index = 3, title = "Tab1")
26
+
@Index(1)
27
+
@TextField(title = "Tab1 f4 index 1")
28
+
privateStringindex4;
38
29
39
-
@Tab(title = "Additional Info", index = 3)
40
-
@Number(title = "Number of children", placeHolder = "Number of children", description = "This is a number")
0 commit comments