Flows for Menus

80 views
Skip to first unread message

clemens...@gmail.com

unread,
Apr 4, 2014, 11:04:55 AM4/4/14
to dataf...@googlegroups.com
Hi,
I want to integrate a MenuBar with MenuItems. Clicking on one MenuItem should change the View, similar to the showDetails Button in the samples.

In the MasterViewController
    @FXML
    @FXMLFlowAction("menuItemPersonNew")
    private MenuItem menuItemNew;

    @FXML
    @FXMLFlowAction("showDetails")
    private Button showDetailsButton;

I added a new .withLink method to the flow, but when I click the menuItem, nothing happens:
Flow flow = new Flow(MasterViewController.class)
            .withLink(MasterViewController.class, "showDetails", PersonViewController.class)
            .withLink(MasterViewController.class, "menuItemPersonNew", PersonViewController.class)

@MasterView.fxml
  <MenuBar layoutY="2.0" prefHeight="25.0" prefWidth="1000.0">
  <menus>
    <Menu fx:id="menuPatients" mnemonicParsing="false" text="Patienten">
      <items>
        <MenuItem fx:id="menuItemNew" mnemonicParsing="false" text="Neu" />
      </items>
    </Menu>
  </menus>
</MenuBar>

Is it possible to do add MenuItems with the Flow concept and what could be my mistake?

Thanks for your appreciate help


Hendrik Ebbers

unread,
Apr 5, 2014, 7:05:36 AM4/5/14
to dataf...@googlegroups.com
HI,
that is a bug. I committed a bug fix yesterday.

Hendrik Ebbers

unread,
Apr 17, 2014, 12:41:36 PM4/17/14
to dataf...@googlegroups.com
DataFX 8 preview 2 is released. This bug is fixed in the version: https://groups.google.com/forum/#!topic/datafx-dev/k4YiLhmtT5s
Reply all
Reply to author
Forward
0 new messages