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
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTextInput(String key, int width, BaseComponent label, boolean labelVisible, String initial, Integer maxLength) TextInput(String key, int width, BaseComponent label, boolean labelVisible, String initial, Integer maxLength, TextInput.Multiline multiline) TextInput(String key, BaseComponent label) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()initial()The initial value of this text inputThe initial value of this text inputlabel()The label of this text inputlabel(BaseComponent label) The label of this text inputbooleanThe visibility of this text inputs labellabelVisible(boolean labelVisible) The visibility of this text inputs labelintmaxLength(int maxLength) if set, allows users to input multiple linesmultiline(TextInput.Multiline multiline) if set, allows users to input multiple linestoString()intwidth()The width of this text inputwidth(int width) The width of this text inputMethods inherited from class net.md_5.bungee.api.dialog.input.DialogInput
key, type
-
Constructor Details
-
TextInput
-
TextInput
public TextInput(String key, int width, BaseComponent label, boolean labelVisible, String initial, Integer maxLength) -
TextInput
public TextInput(String key, int width, BaseComponent label, boolean labelVisible, String initial, Integer maxLength, TextInput.Multiline multiline)
-
-
Method Details
-
width
public int width()The width of this text input -
label
The label of this text input -
labelVisible
public boolean labelVisible()The visibility of this text inputs label -
initial
The initial value of this text input -
maxLength
public int maxLength() -
multiline
if set, allows users to input multiple lines -
width
The width of this text input- Returns:
this.
-
label
The label of this text input- Returns:
this.
-
labelVisible
The visibility of this text inputs label- Returns:
this.
-
initial
The initial value of this text input- Returns:
this.
-
maxLength
- Returns:
this.
-
multiline
if set, 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
-