// Fan mode
EnumLabel fanModeLabel = EnumLabel.getEnumLabel(FAN_MODES, thermostatModel.getFanMode());
exec = new Execution() {
public boolean execute(Object selection) {
FanMode selectedFanMode = (FanMode) ((EnumLabel) selection).getEnumValue();
return thermostatModel.setFanMode(selectedFanMode);
}
};
Field fanModeField = createLabelAndChoiceField(OmniLinkBBClient.getString(OmniLinkClientResource.TEMPERATURE_FAN_MODE), FAN_MODES, fanModeLabel, exec);