Constructor and Description |
---|
UiHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addMousePressedHandlers(com.google.gwt.user.client.ui.Widget widget)
Adds a mouse pressed handler to a widget.
|
static void |
addMousePressedHandlers(com.google.gwt.user.client.ui.Widget widget,
String cssStyleName)
Adds a mouse pressed handler to a widget.
|
static int |
calculateSpaceToBottom(com.google.gwt.user.client.ui.Widget widget) |
static boolean |
isTouchScreenDevice() |
public UiHelper()
public static void addMousePressedHandlers(com.google.gwt.user.client.ui.Widget widget)
PRESSED_CSS_STYLE_NAME
) to the widget as long as the mouse is
pressed (or the user touches the widget). See
addMousePressedHandlers(Widget, String)
.widget
- The widget to which the "pressed" style musst be appliedpublic static void addMousePressedHandlers(com.google.gwt.user.client.ui.Widget widget, String cssStyleName)
widget
- The widget to which the style must be applied for mouse/touch eventcssStyleName
- CSS style name to be appliedpublic static int calculateSpaceToBottom(com.google.gwt.user.client.ui.Widget widget)
public static boolean isTouchScreenDevice()
Copyright © 2018. All rights reserved.