StackPane parent = flow.start();

48 views
Skip to first unread message

wolf....@gmx.net

unread,
Jun 17, 2014, 5:32:33 AM6/17/14
to dataf...@googlegroups.com
Hi guys,

I cannot find the "start" method in the Flow class in the current 8.05b release anymore. The javadoc on your website is even not showing the FLow class itself. But I found the class in the soruce files Sorry for that stupid questions but I`m a newbie in DataFx. I try to implement a main view with a login dialog.

Flow flow = new Flow(MainController.class).

// By using the fluent API a link is added to the flow. The link has
// the unique id "edit" and will link from the MasterView to the
// EditView
withLink(MainController.class, "showLogin",
LoginController.class).

// A link is added to the flow. The link has the unique id
// "save" and will link from the EditView to the MasterView
withLink(LoginController.class, "doLogin",
MainController.class).

// This starts the Flow
StackPane parent = flow.start();
Scene scene = new Scene(parent);
stage.setScene(scene);
stage.show();

Hendrik Ebbers

unread,
Jun 17, 2014, 4:15:21 PM6/17/14
to dataf...@googlegroups.com
Hi & welcome to DataFX
There aren't any stupid questions :) We are happy that people try and use DataFX and want to help you as much as we can.

About the JavaDoc: The linked JavaDoc is a old version of DataFX 2.X. At the moment we create a new build that will deploy the JavaDoc automatically. Since this isn't done you should not depend on the JavaDoc on the website when working with DataFX 8. Do you use Maven? In this case you can simply add the JavaDoc of 8.0b5 to your IDE. If you don't use maven you can download the sources of all versions here: https://bitbucket.org/datafx/datafx/downloads
At Maven Central you can download the source and the JavaDoc for all versions: http://search.maven.org/#search%7Cga%7C1%7Cdatafx

As you can see in the sources and the JavaDoc the start() method is part of the org.datafx.controller.flow.Flow class. Maybe you use an older version of DataFX? 

Thanks,

Hendrik
Reply all
Reply to author
Forward
0 new messages