Skip to content
Snippets Groups Projects
Commit 4a97452c authored by Tiziano Munaro's avatar Tiziano Munaro
Browse files

[UI] Refactor `ICompositeFXController` interface

The `addContainments` method in the `ICompositeFXController` interface
has been removed in favor of the `initialize` method.

Issue-Ref: 3437
Issue-Url: https://af3-developer.fortiss.org/issues/3437



Signed-off-by: default avatarTiziano Munaro <munaro@fortiss.org>
parent a890967c
No related branches found
No related tags found
1 merge request!823437
This commit is part of merge request !82. Comments created here will be created in the context of that merge request.
CompositeFXControllerBase.java 82fa7fdeb260e7469df2f7140a16b9b4201716cd YELLOW
ICompositeFXController.java 8da8c709bc6a8232f7d9dfc0a4e76cea2d6f6879 YELLOW
CompositeFXControllerBase.java 7434e6a8e5c32207c4ffdcac07e0d3ea0cc1125a YELLOW
ICompositeFXController.java 16eebea906607ced29506abf00a4c859fa763269 YELLOW
......@@ -65,8 +65,7 @@ public abstract class CompositeFXControllerBase implements ICompositeFXControlle
throw new RuntimeException(
"Cannot load the resource located at " + getFXMLLocation(), e);
}
initialize();
addContainments(containments);
initialize(containments);
}
return layout;
}
......@@ -77,7 +76,7 @@ public abstract class CompositeFXControllerBase implements ICompositeFXControlle
/** {@inheritDoc} */
@Override
public abstract void addContainments(ICompositeFXController[] containments);
public abstract void initialize(ICompositeFXController[] containments);
/**
* If the container is an {@link AnchorPane}, all margins are removed so as to fit the child to
......
......@@ -33,9 +33,6 @@ public interface ICompositeFXController {
/** Returns the location of the {@link FXML} resource with the view's layout. */
public String getFXMLLocation();
/** Adds the {@link ICompositeFXController}s to the container. */
public void addContainments(ICompositeFXController[] containments);
/** Performs further actions on the layout. */
public void initialize();
/** Initializes the layout and adds the {@link ICompositeFXController}s to the container. */
public void initialize(ICompositeFXController[] containments);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment