Package net.md_5.bungee.api.dialog.input
Class BooleanInput
java.lang.Object
net.md_5.bungee.api.dialog.input.DialogInput
net.md_5.bungee.api.dialog.input.BooleanInput
Represents a checkbox input control.
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanInput(@NonNull String key, @NonNull BaseComponent label) BooleanInput(@NonNull String key, @NonNull BaseComponent label, Boolean initial, String onTrue, String onFalse) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()initial()The initial value (default: false/unchecked).The initial value (default: false/unchecked).@NonNull BaseComponentlabel()The input label.label(@NonNull BaseComponent label) The input label.onFalse()The string value to be submitted when false/unchecked (default: "false").The string value to be submitted when false/unchecked (default: "false").onTrue()The string value to be submitted when true/checked (default: "true").The string value to be submitted when true/checked (default: "true").toString()Methods inherited from class net.md_5.bungee.api.dialog.input.DialogInput
key, type
-
Constructor Details
-
BooleanInput
-
BooleanInput
public BooleanInput(@NonNull @NonNull String key, @NonNull @NonNull BaseComponent label, Boolean initial, String onTrue, String onFalse)
-
-
Method Details
-
label
The input label. -
initial
The initial value (default: false/unchecked). -
onTrue
The string value to be submitted when true/checked (default: "true"). -
onFalse
The string value to be submitted when false/unchecked (default: "false"). -
label
The input label.- Returns:
this.
-
initial
The initial value (default: false/unchecked).- Returns:
this.
-
onTrue
The string value to be submitted when true/checked (default: "true").- Returns:
this.
-
onFalse
The string value to be submitted when false/unchecked (default: "false").- Returns:
this.
-
toString
- Overrides:
toStringin classDialogInput
-
equals
- Overrides:
equalsin classDialogInput
-
canEqual
- Overrides:
canEqualin classDialogInput
-
hashCode
public int hashCode()- Overrides:
hashCodein classDialogInput
-