The idea of the system is to save some information in a txt file that will be queried by a code in Lisp, a decision tree routine will be performed and will return the result to be displayed in the interface in Java.
I have an object that will be populated in different screens of the system, my doubt is the time to pass this object through the scenes. I have the following structure:
TheideaistoclickonabuttonintheClima
viewandbeforeopeningthenextview,instantiatePerfil
andthencallthenextview.
Profile:
publicclassPerfil{intclima;intpaisagem;
ThemethodI'musingtocallthenextview,thiswillbecalledbyclickingontheClima
viewbutton.
@FXMLprivatevoidhandlePaisagemCalor(ActionEventevent)throwsIOException{Perfilperfil=newPerfil();perfil.setClima(1);perfil.setPaisagem(0);ParentclimaParent=FXMLLoader.load(getClass().getResource("/lisp/view/PaisagemCalor.fxml"));
Scene scene = new Scene(climaParent);
Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();
stage.setScene(scene);
stage.show();
}