scalafxml.core

macros

package macros

Visibility
  1. Public
  2. All

Type Members

  1. class TypeCheckHelper[T] extends AnyRef

  2. macro class sfxml extends Annotation with StaticAnnotation

    Annotates a class to generate a ScalaFXML controller around it

    Annotates a class to generate a ScalaFXML controller around it

    Overview

    The annotated class will be moved to an inner class in the generated proxy, named Controller. The proxy gets the annotated class' name, and will have a constructor receiving a scalafxml.core.ControllerDependencyResolver. It implements the javafx.fxml.Initializable interface.

    The generated proxy has all the ScalaFX types from the original class' constructor as public JavaFX variables annotated with the javafx.fxml.FXML attribute.

    All the public methods of the controller are copied to the proxy, delegating the call to the inner controller, converting JavaFX event arguments to ScalaFX event arguments.

    The controller itself is instantiated in the proxy's initialize method.

    Annotations
    @compileTimeOnly( ... )

Value Members

  1. object sfxmlMacro

    Macro transformation implementation

Ungrouped