io.webfolder.ui4j.api.dom.Option Maven / Gradle / Ivy
The 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();
}
public boolean isSelected() {
return parseBoolean(String.valueOf(element.getProperty("selected")));
}
public Option setSelected(boolean selected) {
element.setProperty("selected", selected);
return this;
}
}