if ((canInitDAO() && (widget != null))) {
clearDAO();
boolean connected;
for (int i = 0; i < xAttributeNameList.length; i++) {
final TangoKey xKey = new TangoKey();
final TangoKey yKey = new TangoKey();
TangoKeyTool.registerAttribute(xKey, xAttributeNameList[i]);
TangoKeyTool.registerAttribute(yKey, yAttributeNameList[i]);
connected = ((ChartViewerBox) mybox).connectWidgetDual(((IChartViewer)widget),
xKey, yKey);
if (this.displayAttributeLabel) {
// Affichage du label
String dataViewId = yKey.getInformationKey();
String displayName = TangoAttributeHelper.getLabel(
TangoKeyTool.getDeviceName(yKey),
TangoKeyTool.getAttributeName(yKey));
((IChartViewer)widget).setDataViewDisplayName(dataViewId, displayName);
}