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

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

There is a newer version: 2.1.0
Show newest version
package com.ui4j.api.dom;

public class RadioButton {

    private Element element;

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

    public boolean isChecked() {
        return Boolean.parseBoolean(String.valueOf(element.getProperty("checked")));
    }

    public RadioButton setChecked(boolean state) {
        element.setProperty("checked", state);
        return this;
    }

    public Element getElement() {
        return element;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy