Class SimpleController<T extends javafx.scene.layout.Region,U extends javafx.util.Builder<T>>
java.lang.Object
cz.masci.springfx.mvci.controller.impl.SimpleController<T,U>
- Type Parameters:
T- Type of the view returned by this controllerU- Type of the view builder
- All Implemented Interfaces:
ViewProvider<T>
public class SimpleController<T extends javafx.scene.layout.Region,U extends javafx.util.Builder<T>>
extends Object
implements ViewProvider<T>
Simple controller implementation providing view through the view builder provided in the constructor.
public class MyBuilder implements Builder<Region> {
Region build() {
return new VBox();
}
}
public class MyController extends SimpleController<Region, MyBuilder> {
public MyController() {
super(new MyBuilder());
}
}
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
viewBuilder
-
-
Constructor Details
-
SimpleController
public SimpleController()
-
-
Method Details
-
getView
- Specified by:
getViewin interfaceViewProvider<T extends javafx.scene.layout.Region>
-