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: README.md
+53-6Lines changed: 53 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ This basically assumes that each Screen has its own FXML file and each having it
16
16
17
17
The framework is not limited to Buttons though. Every navigation object such as HyperLink or DropDown can be configured as such.
18
18
19
+
This framework was designed for a Desktop Application. If in case for web, I believe there are a bunch of Web UI Framework out there suitable for the same task. But if this is useful in someone's case, I am glad that I can help.
20
+
19
21
Technologies / Components
20
22
-------------------------
21
23
1. Java Annotations (Java 8)
@@ -35,8 +37,8 @@ Resources
35
37
2. The project also used some concepts of Spring-Reflection
Without the ScreenLoader (RT FX's Screen Navigation Framework), the transition screen code would look like this
90
+
91
+
```java
92
+
privatevoid validate(ActionEvent event) {
93
+
Button btn = (Button) event.getSource();
94
+
switch (btn.getId()) {
95
+
case"btnMain":
96
+
myController.setScreen("screen02");
97
+
break;
98
+
// if you have other buttons to declare
99
+
// you need to add the some piece of code below
100
+
case"btnCancel":
101
+
myController.setScreen("cancel");
102
+
break;
103
+
case"btnBack":
104
+
myController.setScreen("back");
105
+
break;
106
+
default:
107
+
break;
108
+
}
109
+
}
110
+
```
111
+
112
+
Overriding the Default Navigation
113
+
---------------------------------
114
+
There are some instances that the default next screen wont be the next screen the customer (operator of the app) wants. E.g. Instead of going to the default Item Selection Screen first, the customer wants to have another screen before that, Season Screen [Summer, Winter, Fall, Autumn]. Instead of modifying the Screen Controller that redirect to Item Selection Screen, overrite the Controller's Navigation defaultTarget through a series SQL Scripts.
115
+
116
+
```sql
117
+
'This lines of SQL Script will Override the defaultTarget screen id of btnMain navigation object. The default
118
+
'is screen02. Now this script will make it as screen01
0 commit comments