本文整理了Java中com.google.gwt.event.dom.client.MouseEvent.getNativeButton()
方法的一些代码示例,展示了MouseEvent.getNativeButton()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MouseEvent.getNativeButton()
方法的具体详情如下:
包路径:com.google.gwt.event.dom.client.MouseEvent
类名称:MouseEvent
方法名:getNativeButton
[英]Gets the button value. Compare it to com.google.gwt.dom.client.NativeEvent#BUTTON_LEFT, com.google.gwt.dom.client.NativeEvent#BUTTON_RIGHT, com.google.gwt.dom.client.NativeEvent#BUTTON_MIDDLE
Note: this is unreliable for events not caused by the depression or release of a mouse button.
[中]获取按钮值。将其与com进行比较。谷歌。gwt。多姆。客户NativeEvent按钮左,com。谷歌。gwt。多姆。客户NativeEvent#按钮#右,com。谷歌。gwt。多姆。客户NativeEvent#按钮#中间
注意:对于不是由按下或释放鼠标按钮引起的事件,这是不可靠的。
代码示例来源:origin: com.ahome-it/lienzo-core
private static boolean isButtonLeft(final MouseEvent<? extends EventHandler> event)
{
return event.getNativeButton() == NativeEvent.BUTTON_LEFT;
}
}
代码示例来源:origin: com.rht-emitrom/lienzo-core
public boolean isButtonLeft()
{
if (null != m_event)
{
if (m_event.getNativeButton() == NativeEvent.BUTTON_LEFT)
{
return true;
}
}
return false;
}
代码示例来源:origin: com.ahome-it/lienzo-core
public static final boolean isButtonLeft(final MouseEvent<?> event)
{
if (null != event)
{
if (event.getNativeButton() == NativeEvent.BUTTON_LEFT)
{
return true;
}
}
return false;
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
public static final boolean isButtonLeft(final MouseEvent<?> event)
{
if (null != event)
{
if (event.getNativeButton() == NativeEvent.BUTTON_LEFT)
{
return true;
}
}
return false;
}
代码示例来源:origin: ahome-it/lienzo-core
public static final boolean isButtonRight(final MouseEvent<?> event)
{
if (null != event)
{
if (event.getNativeButton() == NativeEvent.BUTTON_RIGHT)
{
return true;
}
}
return false;
}
}
代码示例来源:origin: com.ahome-it/lienzo-core
public static final boolean isButtonMiddle(final MouseEvent<?> event)
{
if (null != event)
{
if (event.getNativeButton() == NativeEvent.BUTTON_MIDDLE)
{
return true;
}
}
return false;
}
代码示例来源:origin: org.geomajas/geomajas-client-common-gwt
@Override
public boolean isRightMouseButton(HumanInputEvent<?> event) {
if (event instanceof MouseEvent<?>) {
return ((MouseEvent<?>) event).getNativeButton() == NativeEvent.BUTTON_RIGHT;
}
return false;
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
public static final boolean isButtonMiddle(final MouseEvent<?> event)
{
if (null != event)
{
if (event.getNativeButton() == NativeEvent.BUTTON_MIDDLE)
{
return true;
}
}
return false;
}
代码示例来源:origin: ahome-it/lienzo-core
private static boolean isButtonLeft(final MouseEvent<? extends EventHandler> event)
{
return event.getNativeButton() == NativeEvent.BUTTON_LEFT;
}
}
代码示例来源:origin: ahome-it/lienzo-core
public static final boolean isButtonMiddle(final MouseEvent<?> event)
{
if (null != event)
{
if (event.getNativeButton() == NativeEvent.BUTTON_MIDDLE)
{
return true;
}
}
return false;
}
代码示例来源:origin: ahome-it/lienzo-core
public static final boolean isButtonRight(final MouseEvent<?> event)
{
if (null != event)
{
if (event.getNativeButton() == NativeEvent.BUTTON_RIGHT)
{
return true;
}
}
return false;
}
}
代码示例来源:origin: com.ahome-it/lienzo-core
public static final boolean isButtonRight(final MouseEvent<?> event)
{
if (null != event)
{
if (event.getNativeButton() == NativeEvent.BUTTON_RIGHT)
{
return true;
}
}
return false;
}
}
代码示例来源:origin: com.rht-emitrom/lienzo-core
public boolean isButtonMiddle()
{
if (null != m_event)
{
if (m_event.getNativeButton() == NativeEvent.BUTTON_MIDDLE)
{
return true;
}
}
return false;
}
代码示例来源:origin: com.rht-emitrom/lienzo-core
public boolean isButtonRight()
{
if (null != m_event)
{
if (m_event.getNativeButton() == NativeEvent.BUTTON_RIGHT)
{
return true;
}
}
return false;
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
public static final boolean isButtonRight(final MouseEvent<?> event)
{
if (null != event)
{
if (event.getNativeButton() == NativeEvent.BUTTON_RIGHT)
{
return true;
}
}
return false;
}
}
代码示例来源:origin: ahome-it/lienzo-core
public static final boolean isButtonLeft(final MouseEvent<?> event)
{
if (null != event)
{
if (event.getNativeButton() == NativeEvent.BUTTON_LEFT)
{
return true;
}
}
return false;
}
代码示例来源:origin: ahome-it/lienzo-core
private static boolean isButtonLeft(final MouseEvent<? extends EventHandler> event)
{
return event.getNativeButton() == NativeEvent.BUTTON_LEFT;
}
}
代码示例来源:origin: ahome-it/lienzo-core
public static final boolean isButtonLeft(final MouseEvent<?> event)
{
if (null != event)
{
if (event.getNativeButton() == NativeEvent.BUTTON_LEFT)
{
return true;
}
}
return false;
}
代码示例来源:origin: ahome-it/lienzo-core
public static final boolean isButtonMiddle(final MouseEvent<?> event)
{
if (null != event)
{
if (event.getNativeButton() == NativeEvent.BUTTON_MIDDLE)
{
return true;
}
}
return false;
}
内容来源于网络,如有侵权,请联系作者删除!