Package net.md_5.bungee.api.dialog.input
Class TextInput
java.lang.Object
net.md_5.bungee.api.dialog.input.DialogInput
net.md_5.bungee.api.dialog.input.TextInput
Represents a textbox input.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConfiguration data for a multiline input. -
Constructor Summary
ConstructorsConstructorDescriptionTextInput(@NonNull String key, @NonNull BaseComponent label) TextInput(@NonNull String key, Integer width, @NonNull BaseComponent label, Boolean labelVisible, String initial, Integer maxLength) TextInput(@NonNull String key, Integer width, @NonNull BaseComponent label, Boolean labelVisible, String initial, Integer maxLength, TextInput.Multiline multiline) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()initial()The initial value of this text input.The initial value of this text input.@NonNull BaseComponentlabel()The label of this text input.label(@NonNull BaseComponent label) The label of this text input.The visibility of this text input's label.labelVisible(Boolean labelVisible) The visibility of this text input's label.The maximum length of the input (default: 32).The maximum length of the input (default: 32).If present, allows users to input multiple lines.multiline(TextInput.Multiline multiline) If present, allows users to input multiple lines.toString()width()The width of this text input (default: 200, minimum: 1, maximum: 1024).Methods inherited from class net.md_5.bungee.api.dialog.input.DialogInput
key, type
-
Constructor Details
-
TextInput
-
TextInput
-
TextInput
public TextInput(@NonNull @NonNull String key, Integer width, @NonNull @NonNull BaseComponent label, Boolean labelVisible, String initial, Integer maxLength, TextInput.Multiline multiline)
-
-
Method Details
-
width
-
width
The width of this text input (default: 200, minimum: 1, maximum: 1024). -
label
The label of this text input. -
labelVisible
The visibility of this text input's label. -
initial
The initial value of this text input. -
maxLength
The maximum length of the input (default: 32). -
multiline
If present, allows users to input multiple lines. -
label
The label of this text input.- Returns:
this.
-
labelVisible
The visibility of this text input's label.- Returns:
this.
-
initial
The initial value of this text input.- Returns:
this.
-
maxLength
The maximum length of the input (default: 32).- Returns:
this.
-
multiline
If present, allows users to input multiple lines.- Returns:
this.
-
toString
- Overrides:
toStringin classDialogInput
-
equals
- Overrides:
equalsin classDialogInput
-
canEqual
- Overrides:
canEqualin classDialogInput
-
hashCode
public int hashCode()- Overrides:
hashCodein classDialogInput
-