Annotation Type FxControllerService


  • @Documented
    @Inherited
    @Retention(RUNTIME)
    @Target(TYPE)
    @Service(FxController.class)
    @Analyze("org.tentackle.buildsupport.FxControllerBundleHandler")
    public @interface FxControllerService
    Annotation for Tentackle FX-controllers.
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String RESOURCES_NONE
      set resources=FxControllerService.RESOURCES_NONE to disable resources.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      FxControllerService.BINDING binding
      Returns whether controller should be bound to the model.
      FxControllerService.CACHING caching
      Returns whether controller should be cached.
      java.lang.String css
      The stylesheet.
      By default, a file <controller-classname>.css is searched for.
      java.lang.String resources
      Gets the resources bundle for annotated controller.
      boolean test
      Returns whether controller should be unit tested.
      java.lang.String url
      Gets the URL for annotated controller.
    • Field Detail

      • RESOURCES_NONE

        static final java.lang.String RESOURCES_NONE
        set resources=FxControllerService.RESOURCES_NONE to disable resources.
    • Element Detail

      • url

        java.lang.String url
        Gets the URL for annotated controller.
        Returns:
        the FXML-URL or empty string if <controller-classname>.fxml
        Default:
        ""
      • resources

        java.lang.String resources
        Gets the resources bundle for annotated controller.
        Returns:
        the bundle url, empty string if <controller-classname>.properties, no resources if RESOURCES_NONE
        Default:
        ""
      • css

        java.lang.String css
        The stylesheet.
        By default, a file <controller-classname>.css is searched for. Missing is ok.
        Returns:
        the CSS string
        Default:
        ""
      • test

        boolean test
        Returns whether controller should be unit tested.
        Returns:
        true if create and bind for test (default), false if no test
        Default:
        true
      • 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