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

com.ui4j.api.dom.Input Maven / Gradle / Ivy

package com.ui4j.api.dom;

public class Input {

    protected Element element;

    public Input(Element element) {
        this.element = element;
    }

    public boolean isDisabled() {
        return Boolean.parseBoolean(String.valueOf(element.getData("disabled")));
    }

    public Input setDisabled(boolean disabled) {
        element.setData("disabled", disabled);
        return this;
    }

    public boolean isReadOnly() {
        return Boolean.parseBoolean(String.valueOf(element.getData("readOnly")));
    }

    public Input setReadOnly(boolean readOnly) {
        element.setData("readOnly", readOnly);
        return this;
    }

    public Element getElement() {
        return element;
    }

    public boolean isHidden() {
        return "hidden".equals(element.getAttribute("type"));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy