Search in sources :

Example 1 with CheckBox

use of com.sencha.gxt.widget.core.client.form.CheckBox in project activityinfo by bedatadriven.

the class RadioGroupWidget method init.

@Override
public void init(FieldValue value) {
    EnumValue enumValue = (EnumValue) value;
    CheckBox checkBox = radios.get(enumValue.getValueId());
    checkBox.setValue(true);
}
Also used : EnumValue(org.activityinfo.model.type.enumerated.EnumValue) CheckBox(com.sencha.gxt.widget.core.client.form.CheckBox)

Example 2 with CheckBox

use of com.sencha.gxt.widget.core.client.form.CheckBox in project activityinfo by bedatadriven.

the class CheckBoxGroupWidget method init.

@Override
public void init(FieldValue value) {
    EnumValue enumValue = (EnumValue) value;
    for (ResourceId itemId : enumValue.getResourceIds()) {
        CheckBox checkBox = checkBoxes.get(itemId);
        checkBox.setValue(true);
    }
}
Also used : ResourceId(org.activityinfo.model.resource.ResourceId) EnumValue(org.activityinfo.model.type.enumerated.EnumValue) CheckBox(com.sencha.gxt.widget.core.client.form.CheckBox)

Aggregations

CheckBox (com.sencha.gxt.widget.core.client.form.CheckBox)2 EnumValue (org.activityinfo.model.type.enumerated.EnumValue)2 ResourceId (org.activityinfo.model.resource.ResourceId)1