@Override public void onBind() { super.onBind(); wasBound = true; } }
@Override public void onBind() { super.onBind(); wasBound = true; }
@Override public void onBind() { super.onBind(); }
@Override protected void onBind() { super.onBind(); addPresenter(child); } }
@Override public void onBind() { super.onBind(); registerHandler(view.addAttachHandler(new OnViewAttached())); }
@Override public void onBind() { super.onBind(); // two-way binding between checked and view.box() binder.bind(checked).to(view.box()); // one-way binding between our derived value and view.label()'s text binder.bind(() -> checked.isTrue() ? "Checked!" : "Not checked").to(textOf(view.label())); }
@Override public void onBind() { super.onBind(); { Property<IsAnchor> current = basicProperty("current"); set("anchors", view.rootAnchors(), current, view.a1()); set("anchors", view.rootAnchors(), current, view.a2()); set("anchors", view.rootAnchors(), current, view.a3()); set("anchors", view.rootAnchors(), current, view.a4()); } { Property<IsLabel> current = basicProperty("current"); set("labels", view.rootLabels(), current, view.l1()); set("labels", view.rootLabels(), current, view.l2()); set("labels", view.rootLabels(), current, view.l3()); set("labels", view.rootLabels(), current, view.l4()); } }
@Override public void onBind() { super.onBind(); box.setAnimationEnabled(true); box.setAutoFadeInElement(false); // we'll fade in the element when ready box.setGlassEnabled(true); box.setWidget(scroll); box.getStyle().setZIndex(2); scroll.setAlwaysShowScrollBars(false); // If the vertical scroll bar shows up, it will take some horizontal space // and cause our content to overflow by 5-whatever pixels. Ignore that. scroll.getStyle().setProperty("overflowX", Overflow.HIDDEN.getCssName()); scroll.getStyle().setBackgroundColor("#FFFFFF"); scroll.add(view); if (GWT.isClient()) { // fix weird bug where the margin:0 in the css reset made the vertical scroll bar always show up ((Element) scroll.getIsElement().asElement().getChild(0)).getStyle().setMargin(1, Unit.PX); } // selenium tests attempting to type into light boxes will hit the // dummy-click-div and cause the lightbox to close unless we add it // as an auto-hide partner. Hide this hack behind a GWT.isClient. if (GWT.isClient()) { final Element clickdiv = DOM.getElementById("dummy-click-div"); if (clickdiv != null) { ((PopupPanel) box).addAutoHidePartner(clickdiv); } } registerHandler(box.addCloseHandler(new OnBoxClose())); registerHandler(window.addResizeHandler(new OnResize())); }