roskenet / springboot-javafx-support

SpringBoot / JavaFX8 Integration
MIT License
419 stars 140 forks source link

Main purpose of @FXMLView (doc) #61

Closed lovky closed 6 years ago

lovky commented 6 years ago

Hi, I start using you library in enterprise project. It's realy time saving and great, but I have a problem of understanding the difference between @FXMLController and @FXMLView. Should I split the code way like actions and listeners into controller and creating dynamic content etc into view ? Thanks

roskenet commented 6 years ago

Hi @lovky, thanks! In general you go in the right direction. In general: The purpose of these annotations is to help you setting up a clean architecture that separates view and controller - what you should do in any case, when implementing more than "HelloWorld". An entry point: https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller

Please note, that there are a lot of different flavours and architectural patterns out there, those two annotations are meant to help you to implement (most of) them easily.

When you look in the examples in https://github.com/roskenet/spring-javafx-examples you should recognize this separation.

Hope, that helps.

roskenet commented 6 years ago

Closed due to no activity.