I am converting some of the add-ons to Vaadin 7 beta 10 APIs.
And I come across following code
@Override
public void paintContent(PaintTarget target) throws PaintException {
super.paintContent(target);
target.addAttribute(VLazyLoadWrapper.WIDGET_LOAD_PROXIMITY, proximity);
target.addAttribute(VLazyLoadWrapper.WIDGET_LOAD_VISIBLE_DELAY,
placeholderVisibleDelay);
target.addAttribute(VLazyLoadWrapper.PLACEHOLDER_HEIGHT,
placeholderHeight);
target.addAttribute(VLazyLoadWrapper.PLACEHOLDER_WIDTH,
placeholderWidth);
target.addAttribute(VLazyLoadWrapper.WRAPPER_MODE, mode);
target.addAttribute(VLazyLoadWrapper.STATIC_CONTAINER, staticContainer);
target.addAttribute(VLazyLoadWrapper.WIDGET_VISIBLE_ID,
clientSideIsVisible);
target.addAttribute(VLazyLoadWrapper.WRAPPER_AUTOREINIT_ON_REATTACH,
autoReinitLazyLoad);
if ((clientSideIsVisible || mode == MODE_LAZY_LOAD_DRAW) && lazyloadComponent != null) {
lazyloadComponent.paint(target);
}
}
For such codes, I understand I need to use AbstractComponentContainer and convert the code inside paintContent to Shared state. But if you see at the end of this code, it is calling lazyloadComponent.paint(target);. So what will be the equivalent of this code for new architecture?