cn.nukkit.form.element.ElementInput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
package cn.nukkit.form.element;
import com.google.gson.annotations.SerializedName;
public class ElementInput extends Element {
private final String type = "input"; //This variable is used for JSON import operations. Do NOT delete :) -- @Snake1999
private String text = "";
private String placeholder = "";
@SerializedName("default")
private String defaultText = "";
public ElementInput(String text) {
this(text, "");
}
public ElementInput(String text, String placeholder) {
this(text, placeholder, "");
}
public ElementInput(String text, String placeholder, String defaultText) {
this.text = text;
this.placeholder = placeholder;
this.defaultText = defaultText;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String getPlaceHolder() {
return placeholder;
}
public void setPlaceHolder(String placeholder) {
this.placeholder = placeholder;
}
public String getDefaultText() {
return defaultText;
}
public void setDefaultText(String defaultText) {
this.defaultText = defaultText;
}
}