-
@Documented @Inherited @Retention(RUNTIME) @Target(TYPE) @Service(FxController.class) @Analyze("org.tentackle.buildsupport.FxControllerBundleAnalyzeHandler") public @interface FxControllerService
Annotation for Tentackle FX-controllers.
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.StringFXML_NONEDisables the fxml-loader if the view is provided by the controller.
Seturl=FxControllerService.FXML_NONE.
The controller needs one of the following constructors: Ifresources=FxControllerService.RESOURCES_NONE:static java.lang.StringRESOURCES_NONEDisables loading of the resource bundle.
Setresources=FxControllerService.RESOURCES_NONE.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description FxControllerService.BINDINGbindingReturns whether controller should be bound to the model.FxControllerService.CACHINGcachingReturns whether controller should be cached.java.lang.StringcssThe stylesheet.
By default, a file<controller-classname>.cssis searched for.java.lang.StringresourcesGets the resources bundle for annotated controller.booleantestReturns whether controller should be unit tested.java.lang.StringurlGets the fxml-URL for annotated controller.
-
-
-
-
FXML_NONE
static final java.lang.String FXML_NONE
Disables the fxml-loader if the view is provided by the controller.
Seturl=FxControllerService.FXML_NONE.
The controller needs one of the following constructors:- If
resources=FxControllerService.RESOURCES_NONE:public <Controllername> () { } - otherwise:
public <Controllername> (ResourceBundle resources) { }Notice thatresourcesis never null.
- If
-
-
-
resources
java.lang.String resources
Gets the resources bundle for annotated controller.- Returns:
- the bundle url, empty string if
<controller-classname>.properties, no resources ifRESOURCES_NONE
- Default:
- ""
-
-
-
caching
FxControllerService.CACHING caching
Returns whether controller should be cached.- Returns:
- the caching mode, CACHING.NO is default.
- Default:
- org.tentackle.fx.FxControllerService.CACHING.NO
-
-
-
binding
FxControllerService.BINDING binding
Returns whether controller should be bound to the model.- Returns:
- the binding mode, BINDING.YES is the default
- Default:
- org.tentackle.fx.FxControllerService.BINDING.YES
-
-