@Override public SafeHtml render(RenderableStamper stamper) { if (renderable != null) { return renderable.render(stamper); } else { checkInit(); HtmlSpanBuilder spanBuilder = HtmlBuilderFactory.get() .createSpanBuilder(); stamper.stamp(spanBuilder).end(); return spanBuilder.asSafeHtml(); } }
@Override protected void onAttach() { checkInit(); if (!isOrWasAttached()) { widget.sinkEvents(eventsToSink); eventsToSink = -1; } widget.onAttach(); // Clobber the widget's call to setEventListener(), causing all events to // be routed to this composite, which will delegate back to the widget by // default (note: it's not necessary to clear this in onDetach(), because // the widget's onDetach will do so). DOM.setEventListener(getElement(), this); // Call doAttachChildren() and then onLoad() directly, because we're not // calling super.onAttach(). doAttachChildren(); onLoad(); AttachEvent.fire(this, true); }
@Override public SafeHtml render(RenderableStamper stamper) { if (renderable != null) { return renderable.render(stamper); } else { checkInit(); HtmlSpanBuilder spanBuilder = HtmlBuilderFactory.get() .createSpanBuilder(); stamper.stamp(spanBuilder).end(); return spanBuilder.asSafeHtml(); } }
@Override public SafeHtml render(RenderableStamper stamper) { if (renderable != null) { return renderable.render(stamper); } else { checkInit(); HtmlSpanBuilder spanBuilder = HtmlBuilderFactory.get() .createSpanBuilder(); stamper.stamp(spanBuilder).end(); return spanBuilder.asSafeHtml(); } }
@Override protected void onAttach() { checkInit(); if (!isOrWasAttached()) { widget.sinkEvents(eventsToSink); eventsToSink = -1; } widget.onAttach(); // Clobber the widget's call to setEventListener(), causing all events to // be routed to this composite, which will delegate back to the widget by // default (note: it's not necessary to clear this in onDetach(), because // the widget's onDetach will do so). DOM.setEventListener(getElement(), this); // Call doAttachChildren() and then onLoad() directly, because we're not // calling super.onAttach(). doAttachChildren(); onLoad(); AttachEvent.fire(this, true); }
@Override protected void onAttach() { checkInit(); if (!isOrWasAttached()) { widget.sinkEvents(eventsToSink); eventsToSink = -1; } widget.onAttach(); // Clobber the widget's call to setEventListener(), causing all events to // be routed to this composite, which will delegate back to the widget by // default (note: it's not necessary to clear this in onDetach(), because // the widget's onDetach will do so). DOM.setEventListener(getElement(), this); // Call doAttachChildren() and then onLoad() directly, because we're not // calling super.onAttach(). doAttachChildren(); onLoad(); AttachEvent.fire(this, true); }