public class FocusableScrollPanel extends SimpleFocusablePanel implements com.google.gwt.event.dom.client.HasScrollHandlers, com.google.gwt.event.dom.client.ScrollHandler
ScrollPanel
.Constructor and Description |
---|
FocusableScrollPanel() |
FocusableScrollPanel(boolean useFakeFocusElement) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler handler) |
com.google.gwt.user.client.Element |
getFocusElement() |
int |
getHorizontalScrollPosition()
Gets the horizontal scroll position.
|
int |
getScrollPosition()
Gets the vertical scroll position.
|
void |
onScroll(com.google.gwt.event.dom.client.ScrollEvent event) |
void |
setFocus(boolean focus) |
void |
setHorizontalScrollPosition(int position)
Sets the horizontal scroll position.
|
void |
setScrollPosition(int position)
Sets the vertical scroll position.
|
void |
setTabIndex(int tabIndex) |
void |
setWidget(com.google.gwt.user.client.ui.Widget w) |
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, focus
add, getContainerElement, getWidget, iterator, remove, setWidget
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public FocusableScrollPanel()
public FocusableScrollPanel(boolean useFakeFocusElement)
public void setWidget(com.google.gwt.user.client.ui.Widget w)
setWidget
in interface com.google.gwt.user.client.ui.HasOneWidget
setWidget
in class com.google.gwt.user.client.ui.SimplePanel
public void setFocus(boolean focus)
setFocus
in class SimpleFocusablePanel
public void setTabIndex(int tabIndex)
setTabIndex
in class SimpleFocusablePanel
public com.google.gwt.event.shared.HandlerRegistration addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler handler)
addScrollHandler
in interface com.google.gwt.event.dom.client.HasScrollHandlers
public int getHorizontalScrollPosition()
public int getScrollPosition()
public void setHorizontalScrollPosition(int position)
position
- the new horizontal scroll position, in pixelspublic void setScrollPosition(int position)
position
- the new vertical scroll position, in pixelspublic void onScroll(com.google.gwt.event.dom.client.ScrollEvent event)
onScroll
in interface com.google.gwt.event.dom.client.ScrollHandler
public com.google.gwt.user.client.Element getFocusElement()
Copyright © 2019 Vaadin Ltd. All rights reserved.