Record Class DialogModel.Text
java.lang.Object
java.lang.Record
com.ultikits.ultitools.ui.dialog.DialogModel.Text
- Record Components:
key- input keylabel- rendered labelinitial- initial textmaxLength- maximum UTF-16 lengthmaxLines- maximum line count
- All Implemented Interfaces:
DialogModel.Input
- Enclosing class:
DialogModel
@Internal
public static record DialogModel.Text(String key, net.kyori.adventure.text.Component label, String initial, int maxLength, int maxLines)
extends Record
implements DialogModel.Input
Text control.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theinitialrecord component.private final StringThe field for thekeyrecord component.private final net.kyori.adventure.text.ComponentThe field for thelabelrecord component.private final intThe field for themaxLengthrecord component.private final intThe field for themaxLinesrecord component. -
Constructor Summary
Constructors -
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.initial()Returns the value of theinitialrecord component.key()Returns the value of thekeyrecord component.net.kyori.adventure.text.Componentlabel()Returns the value of thelabelrecord component.intReturns the value of themaxLengthrecord component.intmaxLines()Returns the value of themaxLinesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Text
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
key
Returns the value of thekeyrecord component.- Specified by:
keyin interfaceDialogModel.Input- Returns:
- the value of the
keyrecord component
-
label
public net.kyori.adventure.text.Component label()Returns the value of thelabelrecord component.- Specified by:
labelin interfaceDialogModel.Input- Returns:
- the value of the
labelrecord component
-
initial
-
maxLength
-
maxLines
-