Interface FxController

  • All Superinterfaces:
    javafx.fxml.Initializable
    All Known Implementing Classes:
    FxControllerImpl

    public interface FxController
    extends javafx.fxml.Initializable
    • Method Detail

      • addControllerInitializedCallback

        void addControllerInitializedCallback​(NativeCallbackToRustChannelSupport callback)
        This will be called when the initialize method of Initializable is called.
        Parameters:
        callback - The callback to add.
      • addEventHandler

        void addEventHandler​(String id,
                             javafx.event.EventHandler<javafx.event.Event> handler,
                             javafx.event.EventType<?> eventType)
                      throws ComponentNotFoundException
        Add a handler for an ActionEvent that comes from a component with a specific id.
        Parameters:
        id - The id of the callback.
        handler - The handler to add.
        eventType - The EventType for Event to handle.
        Throws:
        ComponentNotFoundException
      • setScene

        void setScene​(javafx.scene.Scene scene)
        Sets a scene for this controller.
        Parameters:
        scene - The scene to set.