title: JavaFX - MVPC Pattern - separate FXML objects and event handler methods
body: <p>I would like to create an application in JavaFX which imlements an MVPC pattern.
  My idea is the following:
  <a href="https://i.stack.imgur.com/nt6ME.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nt6ME.png" alt="MVPC model"></a></p>
  
  <ul>
  <li>VIEW: simple FXML file</li>
  <li>CONTROLLER: contains the event handler functions defined in VIEW, updates the PRESENTATION MODEL</li>
  <li>PRESENTATION MODEL:simple data, contains observable objects (ObjectProperty, ObservableList etc.)</li>
  <li>PRESENTER: contains the JavaFX nodes defined by fx:id in the FXML file, binds these nodes to the observable objects in the PRESENTATION MODEL and handles other presentation functions like popup windows. This would be the JavaFX Application.</li>
  </ul>
  
  <p>As you could notice my aim is to separate FXML object (like @FXML Label label) to PRESENTER and FXML event handler methods (like @FXML submit(Action event e){}) TO CONTROLLER.</p>
  
  <p>In short: I have ONE FXML file with elements like fx:id="passwordField" and event handlers like onAction="#browseSbx". I would like to have TWO separate .java controllers, one to contain objects for fx:ids and one to handle event methods.</p>
  
  <p>My question: is there any "clean" way to do this? Or is there any conceptual error in my plan?</p>
  
  <p>Thanks!</p>