public void initAttributeList() {
if (isConfigurationValide()) {
Set<String> imageViewerKeys = imageViewerMap.keySet();
Iterator<String> imageViewerIterator = imageViewerKeys.iterator();
TangoKey imageKey = null;
ImageViewer imageViewer = null;
String key = null;
String label = null;
ImageProperties property = null;
// build TangoKey and register Key
while (imageViewerIterator.hasNext()) {
key = imageViewerIterator.next();
imageViewer = imageViewerMap.get(key);
imageKey = new TangoKey();
TangoKeyTool.registerAttribute(imageKey, scanServerDeviceName, key);
label = CurrentScanDataModel.getAttributeLabel(scanServerDeviceName, key);
imageViewer.setImageName(label);
imageBox.connectWidget(imageViewer, imageKey);
setRefreshingPeriod(imageKey);
setxAttributeName(xAttributeName);
setyAttributeName(xAttributeName);
if (imageProp != null && label != null) {
property = imageProp.get(label.toLowerCase());
if (property != null) {
imageViewer.setImageProperties(property);
}
}
}
refreshComboBox();
}