// Hold mode
EnumLabel holdModeLabel = EnumLabel.getEnumLabel(HOLD_MODES, thermostatModel.getHoldMode());
exec = new Execution() {
public boolean execute(Object selection) {
HoldMode selectedHoldMode = (HoldMode) ((EnumLabel) selection).getEnumValue();
return thermostatModel.setHoldMode(selectedHoldMode);
}
};
Field holdModeField = createLabelAndChoiceField(OmniLinkBBClient.getString(OmniLinkClientResource.TEMPERATURE_HOLD_MODE), HOLD_MODES, holdModeLabel, exec);