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 TypeMethodDescriptionfromJavaFxNode(javafx.scene.Node node) Creates a new component wrapping the given node.javafx.scene.NodeReturns the underlying JavaFX node.
-
Method Details
-
getJavaFxNode
javafx.scene.Node getJavaFxNode()Returns the underlying JavaFX node. @return the JavaFX node -
fromJavaFxNode
Creates a new component wrapping the given node.- Parameters:
node- the JavaFX node to wrap- Returns:
- a new component wrapping the node
-