本文整理匯總了Java中com.google.gwt.event.shared.HandlerRegistration類的典型用法代碼示例。如果您正苦於以下問題:Java HandlerRegistration類的具體用法?Java HandlerRegistration怎麽用?Java HandlerRegistration使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
HandlerRegistration類屬於com.google.gwt.event.shared包,在下文中一共展示了HandlerRegistration類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onDetach
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
protected void onDetach() {
for (HandlerRegistration handler : handlers) {
handler.removeHandler();
}
handlers.clear();
super.onDetach();
}
示例2: onDetach
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
protected void onDetach() {
for (HandlerRegistration handler : handlers) {
handler.removeHandler();
}
handlers.clear();
super.onDetach();
}
示例3: addClickHandler
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
protected HandlerRegistration addClickHandler(
RendererClickHandler<JsonObject> handler) {
return getRenderer().addClickHandler(handler);
}
示例4: wrap
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
public HandlerRegistration wrap(final DragEnterHandler dragEnterHandler) {
return droppableWidget.addOverDroppableHandler(new OverDroppableEventHandler() {
@Override
public void onOverDroppable(OverDroppableEvent event) {
dragEnterHandler.onDragEnter(new DragEnterEventWrapper(DropEventsHandlerWrapper.this));
}
});
}
示例5: wrap
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
public HandlerRegistration wrap(final DragStartHandler dragHandlers) {
HandlerRegistration addDragStartHandler = draggableWidget.addDragStartHandler(new DragStartEventHandler() {
@Override
public void onDragStart(DragStartEvent event) {
dragHandlers.onDragStart(new DragStartEventWrapper(DragStartEndHandlerWrapper.this));
}
});
return addDragStartHandler;
}
示例6: addValueChangeHandler
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Boolean> handler) {
// Is this the first value change handler? If so, time to add handlers
if (!valueChangeHandlerInitialized) {
ensureDomEventHandlers();
valueChangeHandlerInitialized = true;
}
return addHandler(handler, ValueChangeEvent.getType());
}
示例7: addValueChangeHandler
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<StartEndTime> handler) {
return addHandler(handler, ValueChangeEvent.getType());
}
示例8: addValueChangeHandler
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Date> handler) {
return addHandler(handler, ValueChangeEvent.getType());
}
示例9: destroy
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
public void destroy() {
iMeetingClickHandlers.clear();
for (HandlerRegistration reg: iHandlerRegistrations)
reg.removeHandler();
}
示例10: addBlurHandler
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
public HandlerRegistration addBlurHandler(BlurHandler handler) {
return iText.addBlurHandler(handler);
}
示例11: addKeyPressHandler
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
public HandlerRegistration addKeyPressHandler(KeyPressHandler handler) {
return iFilter.getWidget().addKeyPressHandler(handler);
}
示例12: addClickHandler
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
public HandlerRegistration addClickHandler(ClickHandler handler) {
return button.addClickHandler(handler);
}
示例13: addMouseMoveHandler
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
public HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler) {
return addDomHandler(handler, MouseMoveEvent.getType());
}
示例14: registerMouseHandler
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
private <H extends EventHandler> HandlerRegistration registerMouseHandler(H handler, Type<H> type) {
HandlerRegistration registration = ((Widget) accessor.getPlayerContainer()).addDomHandler(handler, type);
upMoveHandlersRegistrations.add(registration);
return registration;
}
示例15: registerTouchHandler
import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
private <H extends EventHandler> HandlerRegistration registerTouchHandler(H handler, Type<H> type) {
HandlerRegistration registration = RootPanel.get().addDomHandler(handler, type);
upMoveHandlersRegistrations.add(registration);
return registration;
}