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


Java HasHandlers類代碼示例

本文整理匯總了Java中com.google.gwt.event.shared.HasHandlers的典型用法代碼示例。如果您正苦於以下問題:Java HasHandlers類的具體用法?Java HasHandlers怎麽用?Java HasHandlers使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


HasHandlers類屬於com.google.gwt.event.shared包,在下文中一共展示了HasHandlers類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: fire

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public static void fire(HasHandlers source) {
    source.fireEvent(new DropDeactivateEvent());
}
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material,代碼行數:4,代碼來源:DropDeactivateEvent.java

示例2: fireNativeEvent

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public static void fireNativeEvent(EventType eventType, NativeEvent nativeEvent,
    HasHandlers handlerSource, FNObject relativeFnObject) {
  assert nativeEvent != null : "nativeEvent must not be null";

  if (registered != null) {
    final Type<?> typeKey = registered.unsafeGet(eventType.name());
    if (typeKey != null) {
      // Store and restore native event just in case we are in recursive
      // loop.
      NativeEvent currentNative = typeKey.flyweight.nativeEvent;
      FNObject currentRelativeElem = typeKey.flyweight.relativeFnObject;
      typeKey.flyweight.setNativeEvent(nativeEvent);
      typeKey.flyweight.setRelativeFnObject(relativeFnObject);

      handlerSource.fireEvent(typeKey.flyweight);

      typeKey.flyweight.setNativeEvent(currentNative);
      typeKey.flyweight.setRelativeFnObject(currentRelativeElem);
    }
  }
}
 
開發者ID:seanchenxi,項目名稱:gwt-rtc,代碼行數:22,代碼來源:FnEvent.java

示例3: fireFocusEvent

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireFocusEvent(HasHandlers widget) {
    DomEvent.fireNativeEvent(Document.get().createFocusEvent(), widget);
}
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material,代碼行數:4,代碼來源:MaterialWidgetTestCase.java

示例4: fireBlurEvent

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireBlurEvent(HasHandlers widget) {
    DomEvent.fireNativeEvent(Document.get().createBlurEvent(), widget);
}
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material,代碼行數:4,代碼來源:MaterialWidgetTestCase.java

示例5: fireClickEvent

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireClickEvent(HasHandlers widget) {
    DomEvent.fireNativeEvent(
        Document.get().createClickEvent(1, 1, 1, 1, 1, false, false, false, false),
        widget
    );
}
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material,代碼行數:7,代碼來源:MaterialWidgetTestCase.java

示例6: fireDoubleClickEvent

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireDoubleClickEvent(HasHandlers widget) {
    DomEvent.fireNativeEvent(
        Document.get().createDblClickEvent(1, 1, 1, 1, 1, false, false, false, false),
        widget
    );
}
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material,代碼行數:7,代碼來源:MaterialWidgetTestCase.java

示例7: fireKeyDownEvent

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireKeyDownEvent(HasHandlers widget) {
    DomEvent.fireNativeEvent(Document.get().createKeyDownEvent(false, false, false, false, 1), widget);
}
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material,代碼行數:4,代碼來源:MaterialWidgetTestCase.java

示例8: fireKeyPressEvent

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireKeyPressEvent(HasHandlers widget) {
    DomEvent.fireNativeEvent(Document.get().createKeyPressEvent(false, false, false, false, 1), widget);
}
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material,代碼行數:4,代碼來源:MaterialWidgetTestCase.java

示例9: fireGestureStartEvent

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireGestureStartEvent(HasHandlers widget) {
    DomEvent.fireNativeEvent(Document.get().createHtmlEvent(BrowserEvents.GESTURESTART, false, false), widget);
}
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material,代碼行數:4,代碼來源:MaterialWidgetTestCase.java

示例10: fireGestureChangeEvent

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireGestureChangeEvent(HasHandlers widget) {
    DomEvent.fireNativeEvent(Document.get().createHtmlEvent(BrowserEvents.GESTURECHANGE, false, false), widget);
}
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material,代碼行數:4,代碼來源:MaterialWidgetTestCase.java

示例11: fireGestureEndEvent

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireGestureEndEvent(HasHandlers widget) {
    DomEvent.fireNativeEvent(Document.get().createHtmlEvent(BrowserEvents.GESTUREEND, false, false), widget);
}
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material,代碼行數:4,代碼來源:MaterialWidgetTestCase.java

示例12: fireTouchCancelEvent

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireTouchCancelEvent(HasHandlers widget) {
    DomEvent.fireNativeEvent(Document.get().createHtmlEvent(BrowserEvents.TOUCHCANCEL, false, false), widget);
}
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material,代碼行數:4,代碼來源:MaterialWidgetTestCase.java

示例13: ConstrainedParameterWidget

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public ConstrainedParameterWidget(List<String> keyValues, String key, String value) {
  keyListBox.clear();
  for (String keyValue : keyValues) {
    keyListBox.addItem(keyValue);
  }

  int startingKeyIndex = -1;
  if (keyValues.contains(key)) {
    startingKeyIndex = keyValues.indexOf(key);
  } else {
    // Initialized with a key not in the key values? Likely a bug somewhere...
    startingKeyIndex = 0;
  }
  keyListBox.setSelectedIndex(startingKeyIndex);
  valueTextBox.setText(value);

  final HasHandlers self = this;
  removeParameterImage.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent arg0) {
        isDeleted = true;
        fireChangeEvent();
      }
    });
  HorizontalPanel panel = new HorizontalPanel();
  panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
  panel.addStyleName("tty-DataRequestParameter");
  panel.add(keyListBox);
  panel.add(valueTextBox);
  panel.add(removeParameterImage);
  initWidget(panel);
}
 
開發者ID:rodion-goritskov,項目名稱:test-analytics-ng,代碼行數:33,代碼來源:ConstrainedParameterWidget.java

示例14: fire

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
/**
 * Fires the event.
 *
 * @param source
 * @param item
 */
public static StopProcessEvent fire(HasHandlers source, Object item) {
    StopProcessEvent event = new StopProcessEvent(item);
    if (TYPE != null)
        source.fireEvent(event);
    return event;
}
 
開發者ID:Governance,項目名稱:dtgov,代碼行數:13,代碼來源:StopProcessEvent.java

示例15: fire

import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
/**
 * Fires the event.
 * @param source
 * @param item
 */
public static DeleteItemEvent fire(HasHandlers source, Object item) {
    DeleteItemEvent event = new DeleteItemEvent(item);
    if (TYPE != null)
        source.fireEvent(event);
    return event;
}
 
開發者ID:Governance,項目名稱:dtgov,代碼行數:12,代碼來源:DeleteItemEvent.java


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