public class ScrollPanelWithScrollbar extends PanelBase implements com.google.gwt.user.client.ui.HasWidgets, DragEventsHandler, SwipeEventsHandler, IScrollPanel
IHeaderPanel implementations always on the top.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_TRANSITION_DURATION |
myFlowPanel| Constructor and Description |
|---|
ScrollPanelWithScrollbar()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget w) |
boolean |
getHasTextBox() |
int |
getScrollPosition()
Returns the current scroll position.
|
int |
getScrollToPosition()
Returns the next scroll position
|
com.google.gwt.user.client.ui.Widget |
getWidget() |
boolean |
isShowScrollBar()
Indicates if the scroll bar should be shown or not.
|
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() |
void |
setHasTextBox(boolean hasTextBox) |
void |
setOffsetHeight(int offsetHeight)
A value greater zero will set the offset height of the panel manually.
|
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
|
void |
setScrollPosition(int pos,
int transitionDuration)
Sets the scroll position
|
void |
setShowScrollBar(boolean showScrollBar)
Indicates if the scroll bar should be shown or not.
|
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 static final int DEFAULT_TRANSITION_DURATION
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 void reset()
public void setScrollMonitor(IScrollMonitor scrollMonitor)
IScrollPanelsetScrollMonitor in interface IScrollPanelpublic void setPostionToTop()
setPostionToTop in interface IScrollPanelpublic void setPositionToBottom()
setPositionToBottom in interface IScrollPanelpublic void setScrollPosition(int pos)
IScrollPanelsetScrollPosition in interface IScrollPanelpos - the x axis pospublic void setScrollPosition(int pos,
int transitionDuration)
pos - the y axis pospublic int getScrollPosition()
getScrollPosition in interface IScrollPanelpublic int getScrollToPosition()
getScrollToPosition in interface IScrollPanelpublic void setOffsetHeight(int offsetHeight)
IScrollPanelsetOffsetHeight in interface IScrollPaneloffsetHeight - the offset height.public void onDragStart(DragEvent e)
DragEventsHandleronDragStart in interface DragEventsHandlere - drag eventpublic void onDragMove(DragEvent e)
DragEventsHandleronDragMove in interface DragEventsHandlere - drag eventpublic 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.public void add(com.google.gwt.user.client.ui.Widget w)
public boolean isShowScrollBar()
public void setShowScrollBar(boolean showScrollBar)
showScrollBar - true if it should be shown, false if not.Copyright © 2011–2015 SWM. All rights reserved.