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
-
public class TextInput extends DialogInput
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTextInput.Multiline
-
Constructor Summary
Constructors Constructor Description TextInput(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)inthashCode()Stringinitial()The initial value of this text inputTextInputinitial(String initial)The initial value of this text inputBaseComponentlabel()The label of this text inputTextInputlabel(BaseComponent label)The label of this text inputbooleanlabelVisible()The visibility of this text inputs labelTextInputlabelVisible(boolean labelVisible)The visibility of this text inputs labelintmaxLength()TextInputmaxLength(int maxLength)TextInput.Multilinemultiline()if set, allows users to input multiple linesTextInputmultiline(TextInput.Multiline multiline)if set, allows users to input multiple linesStringtoString()intwidth()The width of this text inputTextInputwidth(int width)The width of this text input-
Methods inherited from class net.md_5.bungee.api.dialog.input.DialogInput
key, type
-
-
-
-
Constructor Detail
-
TextInput
public TextInput(String key, BaseComponent label)
-
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 Detail
-
width
public int width()
The width of this text input
-
label
public BaseComponent label()
The label of this text input
-
labelVisible
public boolean labelVisible()
The visibility of this text inputs label
-
initial
public String initial()
The initial value of this text input
-
maxLength
public int maxLength()
-
multiline
public TextInput.Multiline multiline()
if set, allows users to input multiple lines
-
width
public TextInput width(int width)
The width of this text input- Returns:
this.
-
label
public TextInput label(BaseComponent label)
The label of this text input- Returns:
this.
-
labelVisible
public TextInput labelVisible(boolean labelVisible)
The visibility of this text inputs label- Returns:
this.
-
initial
public TextInput initial(String initial)
The initial value of this text input- Returns:
this.
-
maxLength
public TextInput maxLength(int maxLength)
- Returns:
this.
-
multiline
public TextInput multiline(TextInput.Multiline multiline)
if set, allows users to input multiple lines- Returns:
this.
-
toString
public String toString()
- Overrides:
toStringin classDialogInput
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classDialogInput
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classDialogInput
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDialogInput
-
-