Skip to content

An example of how you can get other component every where with afterburner.fx.

Notifications You must be signed in to change notification settings

obcardinal/ControllerRelationship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

An example of how you can get other component every where with afterburner.fx.

ControllerRelationship - Screenshot

ViewHelper

@AllArgsConstructor
public enum ViewHelper {
    START(new StartView()),
    CHILD(new ChildView());

    public FXMLView view;
}

Controller - Main

public class StartPresenter implements Initializable {
    @FXML
    private Label label;

    @FXML
    private void clicked() {
        label.setText(((ChildPresenter) ViewHelper.CHILD.view.getPresenter()).textfield.getText());
    }

    @Override
    public void initialize(URL location, ResourceBundle resources) {
        new ChildPlace().start();
    }
}

Controller - Child

public class ChildPresenter {
    @FXML
    public TextField textfield;
}

About

An example of how you can get other component every where with afterburner.fx.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages