Skip to content

Use case for ControllerLookup? #17

@twalcari

Description

@twalcari

Is ControllerLookup still a relevant feature?

As fx-guice is now targeting JavaFX8, and thus supports all features introduced in JavaFX2.2, it also supports getting access to child-controllers as follows:

<VBox fx:controller="com.foo.MainController"> 
...
    <fx:include fx:id="dialog" source="dialog.fxml"/>
...
</VBox>

public class MainController extends Controller { 
    @FXML private Window dialog;
    @FXML private DialogController dialogController;

    ...
}

(source: http://docs.oracle.com/javafx/2/fxml_get_started/whats_new2.htm)

For me, it seems best to remove this class, as - to be useful-, it relies on ParentID, which is broken in JavaFX8.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions