String[] lensModeList = { "lens1", "lens2", "lens3" };
DeviceProxy tmpDeviceProxy = null;
try {
tmpDeviceProxy = new DeviceProxy(model);
DeviceData dd = tmpDeviceProxy.command_inout("GetLensModeList");
lensModeList = dd.extractStringArray();
} catch (DevFailed e) {
e.printStackTrace();
}
lensModeCombo.setValueList((Object[]) lensModeList);
attributeKey = generateAttributeKey("lensMode");
setWidgetModel(lensModeCombo, stringBox, attributeKey);
String[] passModeList = { "pass1", "pass2", "pass3" };
if (tmpDeviceProxy != null) {
try {
DeviceData dd = tmpDeviceProxy.command_inout("GetpassModeList");
passModeList = dd.extractStringArray();
} catch (DevFailed e) {
e.printStackTrace();
}
}
passModeCombo.setValueList((Object[]) passModeList);