Package com.vaadin.client.ui
Class FocusableScrollPanel
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.SimplePanel
-
- com.vaadin.client.ui.SimpleFocusablePanel
-
- com.vaadin.client.ui.FocusableScrollPanel
-
- All Implemented Interfaces:
com.google.gwt.event.dom.client.HasBlurHandlers,com.google.gwt.event.dom.client.HasFocusHandlers,com.google.gwt.event.dom.client.HasKeyDownHandlers,com.google.gwt.event.dom.client.HasKeyPressHandlers,com.google.gwt.event.dom.client.HasScrollHandlers,com.google.gwt.event.dom.client.ScrollHandler,com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.EventHandler,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.AcceptsOneWidget,com.google.gwt.user.client.ui.Focusable,com.google.gwt.user.client.ui.HasOneWidget,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,Focusable,Iterable<com.google.gwt.user.client.ui.Widget>
public class FocusableScrollPanel extends SimpleFocusablePanel implements com.google.gwt.event.dom.client.HasScrollHandlers, com.google.gwt.event.dom.client.ScrollHandler
A scrollhandlers similar toScrollPanel.
-
-
Constructor Summary
Constructors Constructor Description FocusableScrollPanel()FocusableScrollPanel(boolean useFakeFocusElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.event.shared.HandlerRegistrationaddScrollHandler(com.google.gwt.event.dom.client.ScrollHandler handler)com.google.gwt.user.client.ElementgetFocusElement()intgetHorizontalScrollPosition()Gets the horizontal scroll position.intgetScrollPosition()Gets the vertical scroll position.voidonScroll(com.google.gwt.event.dom.client.ScrollEvent event)voidsetFocus(boolean focus)voidsetHorizontalScrollPosition(int position)Sets the horizontal scroll position.voidsetScrollPosition(int position)Sets the vertical scroll position.voidsetTabIndex(int tabIndex)voidsetWidget(com.google.gwt.user.client.ui.Widget w)-
Methods inherited from class com.vaadin.client.ui.SimpleFocusablePanel
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, focus, getTabIndex, setAccessKey
-
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getContainerElement, getWidget, iterator, remove, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
setWidget
public void setWidget(com.google.gwt.user.client.ui.Widget w)
- Specified by:
setWidgetin interfacecom.google.gwt.user.client.ui.HasOneWidget- Overrides:
setWidgetin classcom.google.gwt.user.client.ui.SimplePanel
-
setFocus
public void setFocus(boolean focus)
- Specified by:
setFocusin interfacecom.google.gwt.user.client.ui.Focusable- Overrides:
setFocusin classSimpleFocusablePanel
-
setTabIndex
public void setTabIndex(int tabIndex)
- Specified by:
setTabIndexin interfacecom.google.gwt.user.client.ui.Focusable- Overrides:
setTabIndexin classSimpleFocusablePanel
-
addScrollHandler
public com.google.gwt.event.shared.HandlerRegistration addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler handler)
- Specified by:
addScrollHandlerin interfacecom.google.gwt.event.dom.client.HasScrollHandlers
-
getHorizontalScrollPosition
public int getHorizontalScrollPosition()
Gets the horizontal scroll position.- Returns:
- the horizontal scroll position, in pixels
-
getScrollPosition
public int getScrollPosition()
Gets the vertical scroll position.- Returns:
- the vertical scroll position, in pixels
-
setHorizontalScrollPosition
public void setHorizontalScrollPosition(int position)
Sets the horizontal scroll position.- Parameters:
position- the new horizontal scroll position, in pixels
-
setScrollPosition
public void setScrollPosition(int position)
Sets the vertical scroll position.- Parameters:
position- the new vertical scroll position, in pixels
-
onScroll
public void onScroll(com.google.gwt.event.dom.client.ScrollEvent event)
- Specified by:
onScrollin interfacecom.google.gwt.event.dom.client.ScrollHandler
-
getFocusElement
public com.google.gwt.user.client.Element getFocusElement()
-
-