Package io.quarkiverse.fx.views
Record Class FxViewData.FxViewDataImpl
java.lang.Object
java.lang.Record
io.quarkiverse.fx.views.FxViewData.FxViewDataImpl
- Record Components:
rootNode- : the UI root elementcontroller- : 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
ConstructorsConstructorDescriptionFxViewDataImpl(javafx.scene.Parent rootNode, Object controller) Creates an instance of aFxViewDataImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontrollerrecord component.final booleanIndicates whether some other object is "equal to" this one.<T> TController accessor with automatic cast<T extends javafx.scene.Parent>
TRoot UI element accessor with automatic castfinal inthashCode()Returns a hash code value for this object.javafx.scene.ParentrootNode()Returns the value of therootNoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FxViewDataImpl
Creates an instance of aFxViewDataImplrecord class.- Parameters:
rootNode- the value for therootNoderecord componentcontroller- the value for thecontrollerrecord component
-
-
Method Details
-
getRootNode
public <T extends javafx.scene.Parent> T getRootNode()Description copied from interface:FxViewDataRoot UI element accessor with automatic cast- Specified by:
getRootNodein interfaceFxViewData
-
getController
public <T> T getController()Controller accessor with automatic cast- Specified by:
getControllerin interfaceFxViewData
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
rootNode
public javafx.scene.Parent rootNode()Returns the value of therootNoderecord component.- Returns:
- the value of the
rootNoderecord component
-
controller
Returns the value of thecontrollerrecord component.- Returns:
- the value of the
controllerrecord component
-