captionChangeNotifiers.add(i);
}
Collection<?> pids = i.getItemPropertyIds();
if (pids != null) {
for (Iterator<?> it = pids.iterator(); it.hasNext();) {
Property p = i.getItemProperty(it.next());
if (p != null
&& p instanceof Property.ValueChangeNotifier) {
((Property.ValueChangeNotifier) p)
.addListener(getCaptionChangeListener());
captionChangeNotifiers.add(p);
}
}
}
break;
case ITEM_CAPTION_MODE_PROPERTY:
final Property p = getContainerProperty(itemId,
getItemCaptionPropertyId());
if (p != null && p instanceof Property.ValueChangeNotifier) {
((Property.ValueChangeNotifier) p)
.addListener(getCaptionChangeListener());
captionChangeNotifiers.add(p);