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

io.webfolder.ui4j.api.dom.Option Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package io.webfolder.ui4j.api.dom;

import static java.lang.Boolean.parseBoolean;

public class Option {

    protected Element element;

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

    public Element getElement() {
        return element;
    }

    public Input getInput() {
        return getElement().getInput().get();
    }

    public boolean isSelected() {
        return parseBoolean(String.valueOf(element.getProperty("selected")));
    }

    public Option setSelected(boolean selected) {
        element.setProperty("selected", selected);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy