com.google.gwt.event.dom.client.MouseEvent.getNativeEvent()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(103)

本文整理了Java中com.google.gwt.event.dom.client.MouseEvent.getNativeEvent()方法的一些代码示例,展示了MouseEvent.getNativeEvent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MouseEvent.getNativeEvent()方法的具体详情如下:
包路径:com.google.gwt.event.dom.client.MouseEvent
类名称:MouseEvent
方法名:getNativeEvent

MouseEvent.getNativeEvent介绍

暂无

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Gets the mouse y-position on the user's display.
 * 
 * @return the mouse y-position
 */
public int getScreenY() {
 return getNativeEvent().getScreenY();
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Gets the mouse x-position within the browser window's client area.
 * 
 * @return the mouse x-position
 */
public int getClientX() {
 return getNativeEvent().getClientX();
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Gets the mouse y-position within the browser window's client area.
 * 
 * @return the mouse y-position
 */
public int getClientY() {
 return getNativeEvent().getClientY();
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Gets the mouse x-position on the user's display.
 * 
 * @return the mouse x-position
 */
public int getScreenX() {
 return getNativeEvent().getScreenX();
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Gets the button value. Compare it to
 * {@link com.google.gwt.dom.client.NativeEvent#BUTTON_LEFT},
 * {@link com.google.gwt.dom.client.NativeEvent#BUTTON_RIGHT},
 * {@link com.google.gwt.dom.client.NativeEvent#BUTTON_MIDDLE}
 * <p>
 * Note: this is unreliable for events not caused by the depression
 * or release of a mouse button.
 * 
 * @return the button value
 */
public int getNativeButton() {
 return getNativeEvent().getButton();
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Gets the mouse x-position relative to a given element.
 * 
 * @param target the element whose coordinate system is to be used
 * @return the relative x-position
 */
public int getRelativeX(Element target) {
 NativeEvent e = getNativeEvent();
 return e.getClientX() - target.getAbsoluteLeft() + target.getScrollLeft() +
  target.getOwnerDocument().getScrollLeft();
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Gets the mouse y-position relative to a given element.
 * 
 * @param target the element whose coordinate system is to be used
 * @return the relative y-position
 */
public int getRelativeY(Element target) {
 NativeEvent e = getNativeEvent();
 return e.getClientY() - target.getAbsoluteTop() + target.getScrollTop() +
  target.getOwnerDocument().getScrollTop();
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Gets the mouse y-position within the browser window's client area.
 * 
 * @return the mouse y-position
 */
public int getClientY() {
 return getNativeEvent().getClientY();
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Gets the mouse y-position within the browser window's client area.
 * 
 * @return the mouse y-position
 */
public int getClientY() {
 return getNativeEvent().getClientY();
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Gets the mouse x-position within the browser window's client area.
 * 
 * @return the mouse x-position
 */
public int getClientX() {
 return getNativeEvent().getClientX();
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Gets the mouse y-position on the user's display.
 * 
 * @return the mouse y-position
 */
public int getScreenY() {
 return getNativeEvent().getScreenY();
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Gets the mouse x-position on the user's display.
 * 
 * @return the mouse x-position
 */
public int getScreenX() {
 return getNativeEvent().getScreenX();
}

代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit

@Override
  public void contextHelpIconClick(MouseEvent event) {
    contextHelpIconClick(event.getNativeEvent());
  }
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Gets the mouse x-position on the user's display.
 * 
 * @return the mouse x-position
 */
public int getScreenX() {
 return getNativeEvent().getScreenX();
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Gets the mouse y-position on the user's display.
 * 
 * @return the mouse y-position
 */
public int getScreenY() {
 return getNativeEvent().getScreenY();
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Gets the mouse x-position within the browser window's client area.
 * 
 * @return the mouse x-position
 */
public int getClientX() {
 return getNativeEvent().getClientX();
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Gets the mouse y-position relative to a given element.
 * 
 * @param target the element whose coordinate system is to be used
 * @return the relative y-position
 */
public int getRelativeY(Element target) {
 NativeEvent e = getNativeEvent();
 return e.getClientY() - target.getAbsoluteTop() + target.getScrollTop() +
  target.getOwnerDocument().getScrollTop();
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Gets the mouse y-position relative to a given element.
 * 
 * @param target the element whose coordinate system is to be used
 * @return the relative y-position
 */
public int getRelativeY(Element target) {
 NativeEvent e = getNativeEvent();
 return e.getClientY() - target.getAbsoluteTop() + target.getScrollTop() +
  target.getOwnerDocument().getScrollTop();
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Gets the mouse x-position relative to a given element.
 * 
 * @param target the element whose coordinate system is to be used
 * @return the relative x-position
 */
public int getRelativeX(Element target) {
 NativeEvent e = getNativeEvent();
 return e.getClientX() - target.getAbsoluteLeft() + target.getScrollLeft() +
  target.getOwnerDocument().getScrollLeft();
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Gets the mouse x-position relative to a given element.
 * 
 * @param target the element whose coordinate system is to be used
 * @return the relative x-position
 */
public int getRelativeX(Element target) {
 NativeEvent e = getNativeEvent();
 return e.getClientX() - target.getAbsoluteLeft() + target.getScrollLeft() +
  target.getOwnerDocument().getScrollLeft();
}

相关文章