Record Class ChoiceOption<T>
java.lang.Object
java.lang.Record
com.ultikits.ultitools.ui.ChoiceOption<T>
- Type Parameters:
T- value type- Record Components:
value- the non-null answerlabel- the displayed labeltooltip- optional explanatory text
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChoiceOption(T value, Text label, @Nullable Text tooltip) Rejects a null value or label. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.static <T> ChoiceOption<T> Creates an option without a tooltip.@Nullable Texttooltip()Returns the value of thetooltiprecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
value
-
label
-
tooltip
-
-
Constructor Details
-
ChoiceOption
-
-
Method Details
-
of
Creates an option without a tooltip. -
toString
-
hashCode
-
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). -
value
-
label
-
tooltip
-