Package org.olat.core.gui.formelements

Examples of org.olat.core.gui.formelements.RadioButtonGroupElement.select()


    addFormElement("pulldown", pulldown);

    keys = new String[] { "1", "2" };
    lables = new String[] { "yes", "no" };
    RadioButtonGroupElement radio = new RadioButtonGroupElement(true, "guidemo.form.radio1", keys, lables);
    radio.select("1", true);
    addFormElement("radio1", radio);
   
    keys = new String[] { "1", "2" };
    lables = new String[] { "yes", "no" };
    radio = new RadioButtonGroupElement(false, "guidemo.form.radio2", keys, lables);
View Full Code Here


    addFormElement("radio1", radio);
   
    keys = new String[] { "1", "2" };
    lables = new String[] { "yes", "no" };
    radio = new RadioButtonGroupElement(false, "guidemo.form.radio2", keys, lables);
    radio.select("2", true);
    addFormElement("radio2", radio);

    // checkbox
    keys = new String[] { "1", "2", "3", "4" };
    lables = new String[] { "square", "circle", "rectangle", "triangle" };
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.