All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.nukkit.form.element.ElementInput Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy