This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * This creates a custom Confirm Page. | |
| * confirm is CUSTOM_CONFIRM | |
| * The Button name has three dots ... after clicking a confirm screen displays. | |
| * You are able to cancel or submit. only if you click submit the code get executed. | |
| * You have to return `null` and it will finish and return to your current page. | |
| * Or you could return a new Component where it should go. | |
| */ | |
| @TBSangriaDelegate(availablePages = "InspectTBPerson", confirm = ETBD2WDelegateConfirm.CUSTOM_CONFIRM) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * This creates a Confirm Page with password confirmation. | |
| * confirm is PASSWORD | |
| * The Button name has three dots ... after clicking a confirm screen ask for the password. | |
| * You are able to cancel or submit. only if your password is valid the code get executed. | |
| * You have to return `null` and it will finish and return to your current page. | |
| * Or you could return a new Component where it should go. | |
| */ | |
| @TBSangriaDelegate(availablePages = "InspectTBPerson", confirm = ETBD2WDelegateConfirm.PASSWORD, confirmMessage = "Password Check.") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * This creates a simple Confirm Page with a check-box for confirmation. | |
| * confirm is CONFIRM | |
| * The Button name has three dots ... after clicking a confirm screen ask for checking a check-box. | |
| * You are able to cancel or submit. only if you check the box and submit the code get executed. | |
| * You have to return `null` and it will finish and return to your current page. | |
| * Or you could return a new Component where it should go. | |
| */ | |
| @TBSangriaDelegate(availablePages = "InspectTBPerson", confirm = ETBD2WDelegateConfirm.CONFIRM, confirmMessage = "Are you Really, sure?") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * This is the simplest default implementation of a modern BranchDelegate. | |
| * confirm is NO_CONFIRM | |
| * After clicking the code get executed immediately, also the Button name will not have the three dots ... | |
| * You have to return `null` and it will finish and return to your current page. | |
| * Or you could return a new Component where it should go. | |
| */ | |
| @TBSangriaDelegate(availablePages = "InspectTBPerson", confirm = ETBD2WDelegateConfirm.NO_CONFIRM) | |
| public TBComponent noConfirm() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| final var toast = TBKeenToastr.of("Notification", "Message Sent"); | |
| toast.toast(context()); |