@Documented
@Retention(RUNTIME)
@Target(TYPE)
@Service(FxController.class)
@Analyze("org.tentackle.buildsupport.FxControllerBundleAnalyzeHandler")
public @interface FxControllerService
Annotation for Tentackle FX-controllers.
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionReturns whether controller should be bound to the model.The stylesheet.
By default, a file<controller-classname>.cssis searched for.Gets the resource bundle for annotated controller.booleanReturns whether controller should be unit tested.Gets the fxml-URL for annotated controller. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDisables 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 final StringDisables loading of the resource bundle.
Setresources=FxControllerService.RESOURCES_NONE.
-
Field Details
-
RESOURCES_NONE
Disables loading of the resource bundle.
Setresources=FxControllerService.RESOURCES_NONE.- See Also:
-
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.
- See Also:
- If
-
-
Element Details
-
url
String urlGets the fxml-URL for annotated controller.- Returns:
- the fxml-URL or empty string if
<controller-classname>.fxml
- Default:
- ""
-
resources
String resourcesGets the resource bundle for annotated controller.- Returns:
- the bundle url, empty string if
<controller-classname>.properties, no resources ifRESOURCES_NONE
- Default:
- ""
-
css
String cssThe stylesheet.
By default, a file<controller-classname>.cssis searched for. Missing is ok.- Returns:
- the CSS string
- Default:
- ""
-
test
boolean testReturns whether controller should be unit tested.- Returns:
- true if create and bind for test (default), false if no test
- Default:
- true
-
binding
FxControllerService.BINDING bindingReturns whether controller should be bound to the model.- Returns:
- the binding mode, BINDING.YES is the default
- Default:
- YES
-