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
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,12 +20,13 @@ public class DemoForm implements Serializable {
20
20
@TextField(title = "Your Github Mail",fieldAddonRight="@github.com", description = "This is TextField with fieldAddonRight")
21
21
privateStringgitHub;
22
22
23
+
23
24
// @Tab(title = "Contact", index = 2)
24
-
@Password(title = "Password", placeHolder = "Please set you password",description = "This is password")
25
+
@Password(title = "Password", placeHolder = "Please set you password",minLenght=6,description = "This is password", validationMessage = "The password must contain a minimum of 6 characters ")
25
26
privateStringpassword;
26
27
27
28
@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
+
@TextField(title = "First Name", placeHolder = "Your first name",minLenght=3,maxLenght=10, validationMessage = "The First Name must contain a minimum of 3 and a max of 10 characters ", description = "This is a description for your first name field with minLenght and maxLenght")
29
30
privateStringfirstName;
30
31
31
32
// @Tab(title = "Info", index = 1)
@@ -54,7 +55,7 @@ public class DemoForm implements Serializable {
54
55
privateStringcivilState;
55
56
56
57
// @Tab(title = "Contact", index = 2)
57
-
@TextArea(title = "Address", placeHolder = "Fill your address please", description = "This is textarea")
58
+
@TextArea(title = "Address", placeHolder = "Fill your address please",maxLenght=30,description = "This is textarea" , validationMessage="Max 30 charactres")
@TextField(title = "First Name", placeHolder = "Your first name", pattern = "[a-z]", noTitle = true, validationMessage = "this is a validation msg", description = "This is a description for your first name field", readOnly = true)
399
+
@TextField(title = "First Name", placeHolder = "Your first name", pattern = "[a-z]",minLenght=6,maxLenght=10,noTitle = true, validationMessage = "this is a validation msg", description = "This is a description for your first name field", readOnly = true)
356
400
privateStringfirstName;
357
401
358
402
publicStringgetFirstName() {
@@ -363,7 +407,7 @@ public String getFirstName() {
363
407
364
408
classTextFieldFormRightimplementsSerializable {
365
409
366
-
@TextField(title = "First Name", placeHolder = "Your first name", fieldAddonRight = "@", pattern = "[a-z]", noTitle = true, validationMessage = "this is a validation msg", description = "This is a description for your first name field")
410
+
@TextField(title = "First Name", placeHolder = "Your first name", fieldAddonRight = "@", pattern = "[a-z]",minLenght=6,maxLenght=10,noTitle = true, validationMessage = "this is a validation msg", description = "This is a description for your first name field")
367
411
privateStringfirstName;
368
412
369
413
publicStringgetFirstName() {
@@ -434,7 +478,7 @@ public Double getNumber() {
434
478
435
479
classPasswordFormimplementsSerializable {
436
480
437
-
@Password(title = "Password", placeHolder = "Please set you password", description = "This is password", noTitle = true, validationMessage = "this is a validation msg", readOnly = true)
481
+
@Password(title = "Password", placeHolder = "Please set you password", pattern = "[a-z]", description = "This is password", noTitle = true, validationMessage = "this is a validation msg", readOnly = true)
438
482
privateStringpassword;
439
483
440
484
publicStringgetPassword() {
@@ -444,7 +488,7 @@ public String getPassword() {
444
488
445
489
classPasswordForm2implementsSerializable {
446
490
447
-
@Password(title = "Password", placeHolder = "Please set you password", fieldAddonRight = "@", description = "This is password", noTitle = true, validationMessage = "this is a validation msg", readOnly = true)
491
+
@Password(title = "Password", placeHolder = "Please set you password", pattern = "[a-z]",minLenght=6,maxLenght=10, fieldAddonRight = "@", description = "This is password", noTitle = true, validationMessage = "this is a validation msg", readOnly = true)
448
492
privateStringpassword;
449
493
450
494
publicStringgetPassword() {
@@ -454,17 +498,37 @@ public String getPassword() {
454
498
455
499
classPasswordForm3implementsSerializable {
456
500
457
-
@Password(title = "Password", placeHolder = "Please set you password", fieldAddonLeft = "@", description = "This is password", noTitle = true, validationMessage = "this is a validation msg", readOnly = true)
501
+
@Password(title = "Password", placeHolder = "Please set you password", pattern = "[a-z]",minLenght=6,maxLenght=10, fieldAddonLeft = "@", description = "This is password", noTitle = true, validationMessage = "this is a validation msg", readOnly = true)
458
502
privateStringpassword;
459
503
460
504
publicStringgetPassword() {
461
505
returnpassword;
462
506
}
463
507
}
464
508
509
+
classTextAreaForm2implementsSerializable {
510
+
511
+
@TextArea(title = "Address", placeHolder = "Fill your address please", fieldAddonLeft = "@",minLenght=6,maxLenght=10, description = "This is textarea", noTitle = true, validationMessage = "this is a validation msg", readOnly = true)
512
+
privateStringaddress;
513
+
514
+
publicStringgetAddress() {
515
+
returnaddress;
516
+
}
517
+
}
518
+
519
+
classTextAreaForm3implementsSerializable {
520
+
521
+
@TextArea(title = "Address", placeHolder = "Fill your address please",fieldAddonRight = "@",minLenght=6,maxLenght=10, description = "This is textarea", noTitle = true, validationMessage = "this is a validation msg", readOnly = true)
522
+
privateStringaddress;
523
+
524
+
publicStringgetAddress() {
525
+
returnaddress;
526
+
}
527
+
}
528
+
465
529
classTextAreaFormimplementsSerializable {
466
530
467
-
@TextArea(title = "Address", placeHolder = "Fill your address please", description = "This is textarea", noTitle = true, validationMessage = "this is a validation msg", readOnly = true)
531
+
@TextArea(title = "Address", placeHolder = "Fill your address please", description = "This is textarea",minLenght=6,maxLenght=10,noTitle = true, validationMessage = "this is a validation msg", readOnly = true)
0 commit comments