Record Class DialogModel.Button
java.lang.Object
java.lang.Record
com.ultikits.ultitools.ui.dialog.DialogModel.Button
- Record Components:
label- button labeltooltip- optional hover textrole- semantic action
- Enclosing class:
DialogModel
@Internal
public static record DialogModel.Button(net.kyori.adventure.text.Component label, @Nullable net.kyori.adventure.text.Component tooltip, ButtonRole role)
extends Record
One rendered action.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.kyori.adventure.text.ComponentThe field for thelabelrecord component.private final ButtonRoleThe field for therolerecord component.private final @Nullable net.kyori.adventure.text.ComponentThe field for thetooltiprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionButton(net.kyori.adventure.text.Component label, @Nullable net.kyori.adventure.text.Component tooltip, ButtonRole role) Creates an instance of aButtonrecord class. -
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.net.kyori.adventure.text.Componentlabel()Returns the value of thelabelrecord component.role()Returns the value of therolerecord component.@Nullable net.kyori.adventure.text.Componenttooltip()Returns the value of thetooltiprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Button
public Button(net.kyori.adventure.text.Component label, @Nullable @Nullable net.kyori.adventure.text.Component tooltip, ButtonRole role) Creates an instance of aButtonrecord class.
-
-
Method Details
-
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). -
label
-
tooltip
-
role
-