當前位置: 首頁>>代碼示例>>Java>>正文


Java HandlerRegistration類代碼示例

本文整理匯總了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();
}
 
開發者ID:blackbluegl,項目名稱:calendar-component,代碼行數:9,代碼來源:DateCellDayItem.java

示例2: onDetach

import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
protected void onDetach() {
    for (HandlerRegistration handler : handlers) {
        handler.removeHandler();
    }
    handlers.clear();

    super.onDetach();
}
 
開發者ID:blackbluegl,項目名稱:calendar-component,代碼行數:10,代碼來源:DateCell.java

示例3: addClickHandler

import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
protected HandlerRegistration addClickHandler(
        RendererClickHandler<JsonObject> handler) {
    return getRenderer().addClickHandler(handler);
}
 
開發者ID:phansson,項目名稱:vaadin-clickabletextrenderer-v8,代碼行數:6,代碼來源:ClickableTextRendererConnector.java

示例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));
        }
    });
}
 
開發者ID:YoungDigitalPlanet,項目名稱:empiria.player,代碼行數:9,代碼來源:DropEventsHandlerWrapper.java

示例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;
}
 
開發者ID:YoungDigitalPlanet,項目名稱:empiria.player,代碼行數:10,代碼來源:DragStartEndHandlerWrapper.java

示例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());
}
 
開發者ID:YoungDigitalPlanet,項目名稱:empiria.player,代碼行數:10,代碼來源:AccessibleCheckBox.java

示例7: addValueChangeHandler

import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<StartEndTime> handler) {
	return addHandler(handler, ValueChangeEvent.getType());
}
 
開發者ID:Jenner4S,項目名稱:unitimes,代碼行數:5,代碼來源:StartEndTimeSelector.java

示例8: addValueChangeHandler

import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Date> handler) {
	return addHandler(handler, ValueChangeEvent.getType());
}
 
開發者ID:Jenner4S,項目名稱:unitimes,代碼行數:5,代碼來源:SingleDateSelector.java

示例9: destroy

import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
public void destroy() {
	iMeetingClickHandlers.clear();
	for (HandlerRegistration reg: iHandlerRegistrations)
		reg.removeHandler();
}
 
開發者ID:Jenner4S,項目名稱:unitimes,代碼行數:6,代碼來源:TimeGrid.java

示例10: addBlurHandler

import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
public HandlerRegistration addBlurHandler(BlurHandler handler) {
	return iText.addBlurHandler(handler);
}
 
開發者ID:Jenner4S,項目名稱:unitimes,代碼行數:5,代碼來源:TimeSelector.java

示例11: addKeyPressHandler

import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
public HandlerRegistration addKeyPressHandler(KeyPressHandler handler) {
	return iFilter.getWidget().addKeyPressHandler(handler);
}
 
開發者ID:Jenner4S,項目名稱:unitimes,代碼行數:5,代碼來源:UniTimeFilterBox.java

示例12: addClickHandler

import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
@Override
public HandlerRegistration addClickHandler(ClickHandler handler) {
    return button.addClickHandler(handler);
}
 
開發者ID:YoungDigitalPlanet,項目名稱:empiria.player,代碼行數:5,代碼來源:ToolboxButton.java

示例13: addMouseMoveHandler

import com.google.gwt.event.shared.HandlerRegistration; //導入依賴的package包/類
public HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler) {
  return addDomHandler(handler, MouseMoveEvent.getType());
}
 
開發者ID:mit-cml,項目名稱:appinventor-extensions,代碼行數:4,代碼來源:HandlerPanel.java

示例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;
}
 
開發者ID:YoungDigitalPlanet,項目名稱:empiria.player,代碼行數:7,代碼來源:StickieDragHandlersManager.java

示例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;
}
 
開發者ID:YoungDigitalPlanet,項目名稱:empiria.player,代碼行數:7,代碼來源:StickieDragHandlersManager.java


注:本文中的com.google.gwt.event.shared.HandlerRegistration類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。