mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-25 23:30:28 -04:00
Use ViewCB<? extends PresentationModel instead of Initializable type
This commit is contained in:
parent
d3f1ec252e
commit
b5fc148b75
1 changed files with 3 additions and 5 deletions
|
@ -39,10 +39,8 @@ public class ViewCB<T extends PresentationModel> implements Initializable {
|
||||||
public static final String TITLE_KEY = "view.title";
|
public static final String TITLE_KEY = "view.title";
|
||||||
|
|
||||||
protected T presentationModel;
|
protected T presentationModel;
|
||||||
//TODO Initializable has to be changed to CodeBehind<? extends PresentationModel> when all UIs are updated
|
protected ViewCB<? extends PresentationModel> childController;
|
||||||
protected Initializable childController;
|
protected ViewCB<? extends PresentationModel> parent;
|
||||||
//TODO Initializable has to be changed to CodeBehind<? extends PresentationModel> when all UIs are updated
|
|
||||||
protected Initializable parent;
|
|
||||||
|
|
||||||
@FXML protected Parent root;
|
@FXML protected Parent root;
|
||||||
|
|
||||||
|
@ -92,7 +90,7 @@ public class ViewCB<T extends PresentationModel> implements Initializable {
|
||||||
* @param parent Controller who has created this.getClass().getSimpleName() instance (via
|
* @param parent Controller who has created this.getClass().getSimpleName() instance (via
|
||||||
* navigateToView/FXMLLoader).
|
* navigateToView/FXMLLoader).
|
||||||
*/
|
*/
|
||||||
public void setParent(Initializable parent) {
|
public void setParent(ViewCB<? extends PresentationModel> parent) {
|
||||||
log.trace("Lifecycle: setParentController " + this.getClass().getSimpleName() + " / parent = " +
|
log.trace("Lifecycle: setParentController " + this.getClass().getSimpleName() + " / parent = " +
|
||||||
parent);
|
parent);
|
||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue