<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Create a Controller</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520a%2520Controller/</link><description>Recent changes to Create a Controller</description><atom:link href="https://sourceforge.net/p/do-db/wiki/Create%20a%20Controller/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 07 Mar 2016 07:18:04 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/do-db/wiki/Create%20a%20Controller/feed" rel="self" type="application/rss+xml"/><item><title>Create a Controller modified by Ralph</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520a%2520Controller/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -16,9 +16,7 @@
   @FXML
   private TableView&amp;lt;V&amp;gt; personTableView;
   @FXML
-  private TableColumn&amp;lt;V, String=""&amp;gt; person;
-  @FXML
-  private TableColumn&amp;lt;V, String=""&amp;gt; id;
+  private TableColumn&amp;lt;V, String=""&amp;gt; search;

   @Override
   public void initialize(URL location, ResourceBundle resources) {
@@ -28,9 +26,9 @@
 }
 ~~~~

-That is all to display the attribute *person* to the table view. The rest is done by fxDB.
+That is all to display the attribute *search* to the table view. The rest is done by fxDB.

-One thing is missing. How does the controller know how to match columns and attributes?
+One thing is missing. How does the controller know how to match entity columns and view object attributes?

 Please notice the generics: *V extends VoPerson*. Here the controller is informed about the type of the view object. For each column in the table view the controller will try to find the matching ...Property- method in the view object. This is the reason why we have implemented the annotated ...Property- methods in the view object.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph</dc:creator><pubDate>Mon, 07 Mar 2016 07:18:04 -0000</pubDate><guid>https://sourceforge.neta25f8f59289211d2527012071a0382f3afcc6d03</guid></item><item><title>Create a Controller modified by Ralph</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520a%2520Controller/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -32,7 +32,7 @@

 One thing is missing. How does the controller know how to match columns and attributes?

-Please notice the generics: *V extends VoPerson*. Here the controller is informed about the type of the view object. For each column in the table view the controller will try to find the matching get-Property- Method in the view object. This is the reason why we have implemented the annotated get-Property- Methods in the view object.
+Please notice the generics: *V extends VoPerson*. Here the controller is informed about the type of the view object. For each column in the table view the controller will try to find the matching ...Property- method in the view object. This is the reason why we have implemented the annotated ...Property- methods in the view object.

 And how does the controller known what query result set shall be displayed?

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph</dc:creator><pubDate>Wed, 24 Feb 2016 06:31:41 -0000</pubDate><guid>https://sourceforge.net5b2224ac5d622773bc71a180d7c6c95b06ea1c74</guid></item><item><title>Create a Controller modified by Ralph</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520a%2520Controller/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -7,30 +7,32 @@
 Here we implement the view controller.

 ~~~~
-package com.tcs.contract;
+package de.hoppe.extra.person;

-public class ContractListController&amp;lt;V extends="" VoTransportAgreement=""&amp;gt; 
-      extends de.hoppe.fxDb.controller.DbListController&amp;lt;V&amp;gt;
-      implements Initializable {
+import ...

-   @FXML
-   private TableView&amp;lt;V&amp;gt; myTableView;
-   @FXML
-   private TableColumn&amp;lt;V, String=""&amp;gt; buNameCar;
+public class PersonListController&amp;lt;V extends="" VoPerson=""&amp;gt; extends DbListController&amp;lt;V&amp;gt; implements Initializable {

-   @FXML
-   @Override
-   public void initialize(URL location, ResourceBundle resource) {
-       setTableView(myTableView);
-   }
+  @FXML
+  private TableView&amp;lt;V&amp;gt; personTableView;
+  @FXML
+  private TableColumn&amp;lt;V, String=""&amp;gt; person;
+  @FXML
+  private TableColumn&amp;lt;V, String=""&amp;gt; id;
+
+  @Override
+  public void initialize(URL location, ResourceBundle resources) {
+    setTableView(personTableView);
+  }
+  ....
 }
 ~~~~

-That is all to display the attribute buNameCar to the table view. The rest is done by the fxDB.
+That is all to display the attribute *person* to the table view. The rest is done by fxDB.

-One thing is missing. How does the controller known how to match columns and attributes?
+One thing is missing. How does the controller know how to match columns and attributes?

-Please notice the generics: *V extends VoTransportAgreement*. Here the controller is informed about the type of the view object. For each column in the table view the controller will try to find the matching get-Property- Method in the view object. This is the reason why we have implemented the annotated get-Property- Methods in the view object.
+Please notice the generics: *V extends VoPerson*. Here the controller is informed about the type of the view object. For each column in the table view the controller will try to find the matching get-Property- Method in the view object. This is the reason why we have implemented the annotated get-Property- Methods in the view object.

 And how does the controller known what query result set shall be displayed?

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph</dc:creator><pubDate>Thu, 11 Feb 2016 17:11:16 -0000</pubDate><guid>https://sourceforge.neta31b3cd7f1f24494f3c951a7c850d182b654acf4</guid></item><item><title>Create a Controller modified by Ralph</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520a%2520Controller/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,11 +1,10 @@
 The controller is the missing link between a view object and a JavaFX stage.

 By using @FXML annotations each FX control can be injected into the controller.
-The controller has to know what view object shall be maintained.
+The controller has to know how a view object shall be maintained.
 Then it is easy for the controller to map attributes from the view object to the controls of the JavaFX stage.

-Now we implement the Controller.
-
+Here we implement the view controller.

 ~~~~
 package com.tcs.contract;
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph</dc:creator><pubDate>Fri, 05 Feb 2016 14:59:14 -0000</pubDate><guid>https://sourceforge.net932b4796a646fcf1956dbc216bfc89626c7525e3</guid></item><item><title>Create a Controller modified by Ralph</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520a%2520Controller/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,6 +1,6 @@
 The controller is the missing link between a view object and a JavaFX stage.

-By using @FXML annotations each control can be injected into the controller.
+By using @FXML annotations each FX control can be injected into the controller.
 The controller has to know what view object shall be maintained.
 Then it is easy for the controller to map attributes from the view object to the controls of the JavaFX stage.

@@ -28,3 +28,11 @@
 ~~~~

 That is all to display the attribute buNameCar to the table view. The rest is done by the fxDB.
+
+One thing is missing. How does the controller known how to match columns and attributes?
+
+Please notice the generics: *V extends VoTransportAgreement*. Here the controller is informed about the type of the view object. For each column in the table view the controller will try to find the matching get-Property- Method in the view object. This is the reason why we have implemented the annotated get-Property- Methods in the view object.
+
+And how does the controller known what query result set shall be displayed?
+
+[Create a Query Service] is the contents of the next page.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph</dc:creator><pubDate>Fri, 05 Feb 2016 12:18:56 -0000</pubDate><guid>https://sourceforge.netc110f787e65bb2135d6ded54c0e65903a2733d79</guid></item><item><title>Create a Controller modified by Ralph</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520a%2520Controller/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The controller is the missing link between a view object and a JavaFX stage.&lt;/p&gt;
&lt;p&gt;By using @FXML annotations each control can be injected into the controller.&lt;br/&gt;
The controller has to know what view object shall be maintained.&lt;br/&gt;
Then it is easy for the controller to map attributes from the view object to the controls of the JavaFX stage.&lt;/p&gt;
&lt;p&gt;Now we implement the Controller.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;package com.tcs.contract;

public class ContractListController&amp;lt;V extends VoTransportAgreement&amp;gt; 
      extends de.hoppe.fxDb.controller.DbListController&amp;lt;V&amp;gt;
      implements Initializable {

    @FXML
    private TableView&amp;lt;V&amp;gt; myTableView;
    @FXML
    private TableColumn&amp;lt;V, String&amp;gt; buNameCar;

    @FXML
    @Override
    public void initialize(URL location, ResourceBundle resource) {
        setTableView(myTableView);
    }
}
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;That is all to display the attribute buNameCar to the table view. The rest is done by the fxDB.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph</dc:creator><pubDate>Fri, 05 Feb 2016 12:07:07 -0000</pubDate><guid>https://sourceforge.net3fc18bff8a4ddcca11f193b7c808035746ea3033</guid></item></channel></rss>