// System mode
EnumLabel systemModeLabel = EnumLabel.getEnumLabel(SYSTEM_MODES, thermostatModel.getSystemMode());
exec = new Execution() {
public boolean execute(Object selection) {
SystemMode selectedSystemMode = (SystemMode) ((EnumLabel) selection).getEnumValue();
return thermostatModel.setSystemMode(selectedSystemMode);
}
};
Field systemModeField = createLabelAndChoiceField(OmniLinkBBClient.getString(OmniLinkClientResource.TEMPERATURE_SYSTEM_MODE), SYSTEM_MODES, systemModeLabel, exec);