コード例 #1
0
ファイル: VPopupButton.java プロジェクト: qwasli/PopupButton
 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());
     }
   }
 }
コード例 #2
0
ファイル: VPopupButton.java プロジェクト: qwasli/PopupButton
 public void replaceChildComponent(Widget oldComponent, Widget newComponent) {
   if (!hasChildComponent(oldComponent)) {
     throw new IllegalArgumentException();
   }
   popup.setWidget(newComponent);
 }