public void updateCaption(Paintable component, UIDL uidl) { if (VCaption.isNeeded(uidl)) { if (popup.getCaptionWrapper() != null) { popup.getCaptionWrapper().updateCaption(uidl); } else { VCaptionWrapper captionWrapper = new VCaptionWrapper(component, client); popup.setWidget(captionWrapper); captionWrapper.updateCaption(uidl); } } else { if (popup.getCaptionWrapper() != null) { popup.setWidget((Widget) popup.getCaptionWrapper().getPaintable()); } } }
public void replaceChildComponent(Widget oldComponent, Widget newComponent) { if (!hasChildComponent(oldComponent)) { throw new IllegalArgumentException(); } popup.setWidget(newComponent); }