@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); }
/** * 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(); }
@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); }
@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(); }
@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); } }
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); }
/** @see com.alkacon.acacia.client.widgets.I_EditWidget#onAttachWidget() */ public void onAttachWidget() { super.onAttach(); }
@Override protected void onAttach() { super.onAttach(); updateHeaderWidth(title); }
@Override protected void onAttach() { super.onAttach(); drawGradient(); }
public void onAttach() { super.onAttach(); renderLatexResult(); }
@Override protected void onAttach() { super.onAttach(); // panel.addStyleName("notificationShowed"); }