Interface ComponentInterface<T extends ComponentInterface<T>>

Type Parameters:
T - the concrete component type (self-referencing)
All Known Implementing Classes:
Component

public interface ComponentInterface<T extends ComponentInterface<T>>
Contract for components that wrap a JavaFX Node. Provides bidirectional conversion between the component abstraction and the underlying node.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJavaFxNode(javafx.scene.Node node)
    Creates a new component wrapping the given node.
    javafx.scene.Node
    Returns the underlying JavaFX node.
  • Method Details

    • getJavaFxNode

      javafx.scene.Node getJavaFxNode()
      Returns the underlying JavaFX node. @return the JavaFX node
    • fromJavaFxNode

      T fromJavaFxNode(javafx.scene.Node node)
      Creates a new component wrapping the given node.
      Parameters:
      node - the JavaFX node to wrap
      Returns:
      a new component wrapping the node