File tree Expand file tree Collapse file tree 1 file changed +48
-1
lines changed
Expand file tree Collapse file tree 1 file changed +48
-1
lines changed Original file line number Diff line number Diff line change @@ -33,4 +33,51 @@ Resources
3333 - https://blogs.oracle.com/acaicedo/entry/managing_multiple_screens_in_javafx1
3434 - https://github.com/acaicedo/JFX-MultiScreen
35352 . The project also used some concepts of Spring-Reflection
36- - http://techo-ecco.com/blog/spring-custom-annotations/
36+ - http://techo-ecco.com/blog/spring-custom-annotations/
37+
38+ The Code
39+ ---------
40+ The ` ScreenFlowSample ` Maven Module contains the basic Java FX Screen / Controller pairing that uses the RT FX's Screen Navigation Framework.
41+
42+ It is compose of 3 FXML files:
43+ - mainScreen.fxml
44+ - nextScreen01.fxml
45+ - nextScreen02.fxml
46+
47+ With their corresponding FX Controllers:
48+ - MainScreenController.java
49+ - NextScreen01Controller.java
50+ - NextScreen02Controller.java
51+
52+
53+ ``` java
54+ @Screen (id = " main" , fileContext = " /rt/fx/sample/mainScreen.fxml" )
55+ public class MainScreenController extends AController
56+ {
57+
58+ @FXML
59+ @Navigation (id = " btnMain" , defaultTarget = " screen02" )
60+ Button btnMain;
61+
62+ @FXML
63+ private void validate (ActionEvent event ){
64+ Button btn = (Button )event. getSource();
65+ System . out. println(btn. getId());
66+ myController. setScreen(ScreenLoader . getNavigation(" main" , btn. getId()));
67+ }
68+
69+ }
70+
71+
72+
73+
74+
75+
76+
77+
78+
79+
80+
81+
82+
83+
You can’t perform that action at this time.
0 commit comments