コード例 #1
0
  @Override
  protected void onAttach() {
    super.onAttach();
    Image img =
        new Image(
            getBaseImageUrl()
                + "?merchant_id="
                + getMerchantId()
                + "&w="
                + getWidth()
                + "&h="
                + getHeight()
                + "&style="
                + getStyle()
                + "&variant="
                + getVariant()
                + "&loc="
                + getLoc());
    img.setTitle("Fast checkout through Google");

    PushButton pb = new PushButton(img);
    pb.addClickHandler(this);
    vpanel.clear();
    vpanel.add(pb);
  }
コード例 #2
0
ファイル: ColorPicker.java プロジェクト: BerengereG/contrib
 /**
  * This method is called when a widget is attached to the browser's document. To receive
  * notification after a Widget has been added to the document, override the Widget.onLoad()
  * method.
  *
  * <p>Subclasses that override this method must call <tt>super.onAttach()</tt> before doing
  * anything else to ensure that the Widget has been properly attached to its underlying Element.
  */
 @Override
 public void onAttach() {
   // Called when we are shown (from being hidden)
   super.onAttach();
   colorMode = -1;
   updateSliders();
 }
コード例 #3
0
 @Override
 protected void onAttach() {
   super.onAttach();
   String name = String.valueOf(hashCode());
   navMenu.addStyleName(sideNav);
   navMenu.getElement().setAttribute("data-activates", name);
   mobileNav.getElement().setId(name);
   initNavBar(Integer.parseInt(getSideBarWidth()), sideNav);
 }
コード例 #4
0
 @Override
 protected void onAttach() {
   if (messageEventListeners != null) {
     for (final PostMessageEventListener messageEventListener : messageEventListeners) {
       if (!postMessageListenerFunctions.containsKey(messageEventListener.getActionToWatch())) {
         postMessageListenerFunctions.put(
             messageEventListener.getActionToWatch(),
             addFrameNotificationListener(messageEventListener));
       }
     }
   }
   super.onAttach();
 }
コード例 #5
0
 @Override
 protected void onAttach() {
   super.onAttach();
   // gwt sets openSearcButton's tabindex to 0 at onAttach (see
   // FocusWidget.onAttach())
   // but we don't want to select openSearchButton with tab, so tabindex will
   // be set back to -1 after attach all time.
   if (this.openSearchButton != null) {
     this.openSearchButton.setTabIndex(-1);
   }
   if (this.openMenuButton != null) {
     this.openMenuButton.setTabIndex(-1);
   }
 }
コード例 #6
0
  protected void onAttach() {
    super.onAttach();
    target.addScrollListener(this.scrollListener);
    Window.addWindowResizeListener(this.windowListener);
    this.lowerTarget.addMouseListener(this.getLowerListener());
    this.higherTarget.addMouseListener(this.getHigherListener());
    this.barTarget.addMouseListener(this.getBarListener());

    Timer t =
        new Timer() {
          public void run() {
            target.setScrollPosition(target.getScrollPosition());
            refresh();
          }
        };

    t.schedule(10);
  }
コード例 #7
0
  /** @see com.alkacon.acacia.client.widgets.I_EditWidget#onAttachWidget() */
  public void onAttachWidget() {

    super.onAttach();
  }
コード例 #8
0
  @Override
  protected void onAttach() {
    super.onAttach();

    updateHeaderWidth(title);
  }
コード例 #9
0
 @Override
 protected void onAttach() {
   super.onAttach();
   drawGradient();
 }
コード例 #10
0
 public void onAttach() {
   super.onAttach();
   renderLatexResult();
 }
コード例 #11
0
 @Override
 protected void onAttach() {
   super.onAttach();
   // panel.addStyleName("notificationShowed");
 }