|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.terminal.gwt.client.ui.TouchScrollDelegate.TouchScrollHandler
public static class TouchScrollDelegate.TouchScrollHandler
A helper class for making a widget scrollable. Uses native scrolling if supported by the browser, otherwise registers a touch start handler delegating to a TouchScrollDelegate instance.
| Constructor Summary | |
|---|---|
TouchScrollDelegate.TouchScrollHandler(com.google.gwt.user.client.ui.Widget widget,
com.google.gwt.dom.client.Element... scrollables)
Constructs a scroll handler for the given widget. |
|
| Method Summary | |
|---|---|
void |
addElement(com.google.gwt.dom.client.Element scrollable)
Registers the given element as scrollable. |
void |
debug(com.google.gwt.dom.client.Element e)
|
void |
onTouchStart(com.google.gwt.event.dom.client.TouchStartEvent event)
|
void |
removeElement(com.google.gwt.dom.client.Element scrollable)
Unregisters the given element as scrollable. |
void |
setElements(com.google.gwt.dom.client.Element... scrollables)
Registers the given elements as scrollable, removing previously registered scrollables from this handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TouchScrollDelegate.TouchScrollHandler(com.google.gwt.user.client.ui.Widget widget,
com.google.gwt.dom.client.Element... scrollables)
widget - The widget that contains scrollable elementsscrollables - The elements of the widget that should be scrollable.| Method Detail |
|---|
public void onTouchStart(com.google.gwt.event.dom.client.TouchStartEvent event)
onTouchStart in interface com.google.gwt.event.dom.client.TouchStartHandlerpublic void debug(com.google.gwt.dom.client.Element e)
public void addElement(com.google.gwt.dom.client.Element scrollable)
public void removeElement(com.google.gwt.dom.client.Element scrollable)
public void setElements(com.google.gwt.dom.client.Element... scrollables)
scrollables - The elements that should be scrollable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||