Package net.rgielen.fxweaver.core
Class SimpleFxControllerAndView<C,V extends javafx.scene.Node>
- java.lang.Object
-
- net.rgielen.fxweaver.core.SimpleFxControllerAndView<C,V>
-
- All Implemented Interfaces:
FxControllerAndView<C,V>
public class SimpleFxControllerAndView<C,V extends javafx.scene.Node> extends Object implements FxControllerAndView<C,V>
SimpleFxControllerAndView is a container class for Controller beans and their corresponding Views.- Author:
- Rene Gielen
-
-
Constructor Summary
Constructors Constructor Description SimpleFxControllerAndView(C controller, V view)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CgetController()Optional<V>getView()static <C,V extends javafx.scene.Node>
FxControllerAndView<C,V>of(C controller, V view)static <C,V extends javafx.scene.Node>
FxControllerAndView<C,V>ofController(C controller)StringtoString()
-
-
-
Method Detail
-
ofController
public static <C,V extends javafx.scene.Node> FxControllerAndView<C,V> ofController(C controller)
-
of
public static <C,V extends javafx.scene.Node> FxControllerAndView<C,V> of(C controller, V view)
-
getController
public C getController()
- Specified by:
getControllerin interfaceFxControllerAndView<C,V extends javafx.scene.Node>
-
getView
public Optional<V> getView()
- Specified by:
getViewin interfaceFxControllerAndView<C,V extends javafx.scene.Node>
-
-