{"action":"closed","issue":{"url":"https://api.github.com/repos/canoo/dolphin-platform/issues/431","repository_url":"https://api.github.com/repos/canoo/dolphin-platform","labels_url":"https://api.github.com/repos/canoo/dolphin-platform/issues/431/labels{/name}","comments_url":"https://api.github.com/repos/canoo/dolphin-platform/issues/431/comments","events_url":"https://api.github.com/repos/canoo/dolphin-platform/issues/431/events","html_url":"https://github.com/canoo/dolphin-platform/issues/431","id":218960141,"number":431,"title":"Challenged In Making A Master-Detail Application","user":{"login":"jermsam","id":11094475,"avatar_url":"https://avatars2.githubusercontent.com/u/11094475?v=3","gravatar_id":"","url":"https://api.github.com/users/jermsam","html_url":"https://github.com/jermsam","followers_url":"https://api.github.com/users/jermsam/followers","following_url":"https://api.github.com/users/jermsam/following{/other_user}","gists_url":"https://api.github.com/users/jermsam/gists{/gist_id}","starred_url":"https://api.github.com/users/jermsam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jermsam/subscriptions","organizations_url":"https://api.github.com/users/jermsam/orgs","repos_url":"https://api.github.com/users/jermsam/repos","events_url":"https://api.github.com/users/jermsam/events{/privacy}","received_events_url":"https://api.github.com/users/jermsam/received_events","type":"User","site_admin":false},"labels":[{"id":560474229,"url":"https://api.github.com/repos/canoo/dolphin-platform/labels/Community-Issue","name":"Community-Issue","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-04-03T14:54:40Z","updated_at":"2017-04-07T06:02:55Z","closed_at":"2017-04-07T06:02:55Z","body":"Hello.\r\n\r\nI am doing a master-detail kind of application. To test how I am going to go about it, I have started with 3 simple views.\r\n1. Table.fxml : showing a list of topics and their description. [This I have successfully done.] as you can see:\r\n![tablefxml](https://cloud.githubusercontent.com/assets/11094475/24613791/01a6ccd4-1892-11e7-8fc7-564d89599fbd.PNG)\r\n2. Form.fxm: does the CRUD operations on the Topics data. [This also I have successfully done as a stand alone] as you can see:\r\n![formfxml](https://cloud.githubusercontent.com/assets/11094475/24614053/c1d0e152-1892-11e7-81d6-559e7f2278d1.PNG)\r\n3. Main.fxml: Is supposed to house both Table.fxml and Form.fxml. As shown in the figure below:\r\n![masterfxml](https://cloud.githubusercontent.com/assets/11094475/24614881/504fc216-1895-11e7-9b9f-16e7e23c968f.PNG)\r\n\r\nI have defined TopicViewBean.java like this:\r\n\r\n`\r\n@DolphinBean\r\npublic class TopicViewBean {\r\n\tprivate Property<TopicBean> bean;\r\n\r\n\t public Property<TopicBean> beanProperty() {\r\n\t        return bean;\r\n\t    }\r\n\r\n\t    public TopicBean getBean() {\r\n\t        return bean.get();\r\n\t    }\r\n\r\n\t    public void setBean(TopicBean bean) {\r\n\t        this.bean.set(bean);\r\n\t    }\r\n\t\r\n\tprivate Property<TopicListBean> listBean;\r\n\t\r\n\t public Property<TopicListBean> listBeanProperty() {\r\n\t        return listBean;\r\n\t    }\r\n\r\n\t    public TopicListBean getListBean() {\r\n\t        return listBean.get();\r\n\t    }\r\n\r\n\t    public void setListBean(TopicListBean listBean) {\r\n\t        this.listBean.set(listBean);\r\n\t    }\r\n}\r\n\r\n`\r\nMy challenge is with defining TopicBinder.java and TopicController.java to ensure that the Table           part and the Form part of my MainView work as they did when they where still standing alone. \r\nHere is my TopicView.fxml:\r\n`\r\n<AnchorPane maxHeight=\"-Infinity\" maxWidth=\"-Infinity\" minHeight=\"-Infinity\" minWidth=\"-Infinity\" prefHeight=\"600.0\" prefWidth=\"650.0\" xmlns=\"http://javafx.com/javafx/8.0.40\" xmlns:fx=\"http://javafx.com/fxml/1\">\r\n   <children>\r\n      <VBox alignment=\"CENTER\" prefHeight=\"400.0\" prefWidth=\"600.0\" spacing=\"10.0\" AnchorPane.bottomAnchor=\"10.0\" AnchorPane.leftAnchor=\"10.0\" AnchorPane.rightAnchor=\"10.0\" AnchorPane.topAnchor=\"10.0\">\r\n         <children>\r\n            <HBox alignment=\"CENTER\" prefHeight=\"100.0\" prefWidth=\"200.0\" VBox.vgrow=\"ALWAYS\" />\r\n            <HBox alignment=\"CENTER\" layoutX=\"10.0\" layoutY=\"10.0\" prefHeight=\"100.0\" prefWidth=\"200.0\" VBox.vgrow=\"ALWAYS\">\r\n               <children>\r\n                  <fx:include fx:id=\"table\" source=\"TableView.fxml\" />\r\n               </children>\r\n            </HBox>\r\n            <HBox alignment=\"CENTER\" layoutX=\"10.0\" layoutY=\"110.0\" prefHeight=\"83.0\" prefWidth=\"630.0\" VBox.vgrow=\"ALWAYS\">\r\n               <children>\r\n                  <fx:include fx:id=\"form\" source=\"FormView.fxml\" />\r\n               </children>\r\n            </HBox>\r\n         </children>\r\n      </VBox>\r\n   </children>\r\n</AnchorPane>\r\n         </children>\r\n      </VBox>\r\n   </children>\r\n</AnchorPane>\r\n`\r\nThank you."}}
{"actor":{"display_login":"timo0"}}