public class ScrollPanel extends PanelBase implements com.google.gwt.user.client.ui.HasWidgets, DragEventsHandler, SwipeEventsHandler, IScrollPanel
IHeaderPanel implementations always on the top.myFlowPanel| Constructor and Description |
|---|
ScrollPanel()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget w) |
void |
addScrollPanelEventsHandler(ScrollPanelEventsHandler scrollPanelEventsHandler)
Neuen Handler fuer Scroll Panel Events registrieren.
|
boolean |
getHasTextBox() |
ScrollPanelEventsHandler |
getScrollPanelEventsHandler() |
int |
getScrollPosition()
Returns the current scroll position.
|
int |
getScrollToPosition()
Returns the next scroll position
|
com.google.gwt.user.client.ui.Widget |
getWidget() |
void |
onDragEnd(DragEvent e)
When the drag ends
|
void |
onDragMove(DragEvent e)
When the drag is ongoing.
|
void |
onDragStart(DragEvent e)
When the drag starts.
|
void |
onLoad() |
void |
onSwipeHorizontal(SwipeEvent e)
When the user swipes horizontal
|
void |
onSwipeVertical(SwipeEvent e)
When the user swipes vertical.
|
void |
onUnload() |
void |
reset()
Scrolls to the default position.
|
void |
setHasTextBox(boolean hasTextBox) |
void |
setOffsetHeight(int offsetHeight)
A value greater zero will set the offset height of the panel manually.
|
void |
setOverscrollButtonTolerance(int overscrollButtonTolerance)
Sets the button overscroll tolerance in px
|
void |
setPositionToBottom()
Scrolls to the button.
|
void |
setPostionToTop()
Scrolls to the top.
|
void |
setScrollMonitor(IScrollMonitor scrollMonitor)
A scroll monitor provides callback when the scrolling is done.
|
void |
setScrollPosition(int pos)
Sets the croll position
|
clear, getWidget, getWidgetCount, insert, iterator, remove, removeonInitialLoad, onTransitionEnd, setSecondaryStyleclaimElement, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementgetElementpublic void setScrollMonitor(IScrollMonitor scrollMonitor)
setScrollMonitor in interface IScrollPanelscrollMonitor - public void setHasTextBox(boolean hasTextBox)
public boolean getHasTextBox()
public void onLoad()
onLoad in class SWMMobileWidgetBasepublic void onUnload()
onUnload in class com.google.gwt.user.client.ui.Widgetpublic com.google.gwt.user.client.ui.Widget getWidget()
getWidget in class com.google.gwt.user.client.ui.Compositepublic ScrollPanelEventsHandler getScrollPanelEventsHandler()
public void addScrollPanelEventsHandler(ScrollPanelEventsHandler scrollPanelEventsHandler)
scrollPanelEventsHandler - eventhandlerpublic void setOverscrollButtonTolerance(int overscrollButtonTolerance)
overscrollButtonTolerance - public void reset()
public void setPostionToTop()
setPostionToTop in interface IScrollPanelpublic void setPositionToBottom()
setPositionToBottom in interface IScrollPanelpublic void setScrollPosition(int pos)
setScrollPosition in interface IScrollPanelpos - the x axis pospublic int getScrollPosition()
getScrollPosition in interface IScrollPanelpublic int getScrollToPosition()
getScrollToPosition in interface IScrollPanelpublic void onDragStart(DragEvent e)
DragEventsHandleronDragStart in interface DragEventsHandlere - drag eventpublic void onDragMove(DragEvent e)
DragEventsHandleronDragMove in interface DragEventsHandlere - drag eventpublic void setOffsetHeight(int offsetHeight)
setOffsetHeight in interface IScrollPaneloffsetHeight - the offset height.public void onDragEnd(DragEvent e)
DragEventsHandleronDragEnd in interface DragEventsHandlere - drag eventpublic void onSwipeVertical(SwipeEvent e)
SwipeEventsHandleronSwipeVertical in interface SwipeEventsHandlere - the swipe eventpublic void onSwipeHorizontal(SwipeEvent e)
SwipeEventsHandleronSwipeHorizontal in interface SwipeEventsHandlere - the swipe event.Copyright © 2011–2015 SWM. All rights reserved.