Interface FxViewData

All Known Implementing Classes:
FxViewData.FxViewDataImpl

public interface FxViewData
Combination of loaded FXML elements. Provides convenient accessors with automatic casts.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    FxViewData immutable implementation
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    Controller accessor with automatic cast
    <T extends javafx.scene.Parent>
    T
    Root UI element accessor with automatic cast
    static FxViewData
    of(javafx.scene.Parent rootNode, Object controller)
     
  • Method Details

    • getRootNode

      <T extends javafx.scene.Parent> T getRootNode()
      Root UI element accessor with automatic cast
    • getController

      <T> T getController()
      Controller accessor with automatic cast
    • of

      static FxViewData of(javafx.scene.Parent rootNode, Object controller)