@Test public void canCreateIdentityEditView() { controller.createIdentityEdit(new Pane()); assertNotNull(controller.identityEditView); }
void createIdentityEdit(Pane container) { identityEditView = new IdentityEditView(identity); identityEditView.getView(v -> { Popup popup = new Popup(container, v); popup.show(); identityEditView.getPresenter().onFinish(popup::close); }); identityEditController = identityEditView.getPresenter(); }
IdentityContextMenuController extends AbstractController implements Initializable { void createIdentityEdit(Pane container) { identityEditView = new IdentityEditView(identity); identityEditView.getView(v -> { Popup popup = new Popup(container, v); popup.show(); identityEditView.getPresenter().onFinish(popup::close); }); identityEditController = identityEditView.getPresenter(); } }
IdentityContextMenuController extends AbstractController implements Initializable { void createIdentityEdit(Pane container) { identityEditView = new IdentityEditView(identity); identityEditView.getView(v -> { Popup popup = new Popup(container, v); popup.show(); identityEditView.getPresenter().onFinish(popup::close); }); identityEditController = identityEditView.getPresenter(); }  }
IdentityContextMenuController extends AbstractController implements Initializable { void createIdentityEdit(Pane container) { identityEditView = new IdentityEditView(identity); identityEditView.getView(v -> { Popup popup = new Popup(container, v); popup.show(); identityEditView.getPresenter().onFinish(popup::close); }); identityEditController = identityEditView.getPresenter(); }  @Override void initialize(URL location, ResourceBundle resources); void openQRCode(); void editIdentity(); @FXML void delete(); void onClose(Runnable closeHandler); void exportIdentity(); void exportContact(); }
IdentityContextMenuController extends AbstractController implements Initializable { void createIdentityEdit(Pane container) { identityEditView = new IdentityEditView(identity); identityEditView.getView(v -> { Popup popup = new Popup(container, v); popup.show(); identityEditView.getPresenter().onFinish(popup::close); }); identityEditController = identityEditView.getPresenter(); }  @Override void initialize(URL location, ResourceBundle resources); void openQRCode(); void editIdentity(); @FXML void delete(); void onClose(Runnable closeHandler); void exportIdentity(); void exportContact();  }