Record Class FxViewData.FxViewDataImpl

java.lang.Object
java.lang.Record
io.quarkiverse.fx.views.FxViewData.FxViewDataImpl
Record Components:
rootNode - : the UI root element
controller - : associated controller
All Implemented Interfaces:
FxViewData
Enclosing interface:
FxViewData

public static record FxViewData.FxViewDataImpl(javafx.scene.Parent rootNode, Object controller) extends Record implements FxViewData
FxViewData immutable implementation
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.quarkiverse.fx.views.FxViewData

    FxViewData.FxViewDataImpl
  • Constructor Summary

    Constructors
    Constructor
    Description
    FxViewDataImpl(javafx.scene.Parent rootNode, Object controller)
    Creates an instance of a FxViewDataImpl record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the controller record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    <T> T
    Controller accessor with automatic cast
    <T extends javafx.scene.Parent>
    T
    Root UI element accessor with automatic cast
    final int
    Returns a hash code value for this object.
    javafx.scene.Parent
    Returns the value of the rootNode record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FxViewDataImpl

      public FxViewDataImpl(javafx.scene.Parent rootNode, Object controller)
      Creates an instance of a FxViewDataImpl record class.
      Parameters:
      rootNode - the value for the rootNode record component
      controller - the value for the controller record component
  • Method Details

    • getRootNode

      public <T extends javafx.scene.Parent> T getRootNode()
      Description copied from interface: FxViewData
      Root UI element accessor with automatic cast
      Specified by:
      getRootNode in interface FxViewData
    • getController

      public <T> T getController()
      Controller accessor with automatic cast
      Specified by:
      getController in interface FxViewData
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • rootNode

      public javafx.scene.Parent rootNode()
      Returns the value of the rootNode record component.
      Returns:
      the value of the rootNode record component
    • controller

      public Object controller()
      Returns the value of the controller record component.
      Returns:
      the value of the controller record component