Class 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.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>
    Direct Known Subclasses:
    VScrollTable.FocusableScrollContextPanel

    public class FocusableScrollPanel
    extends SimpleFocusablePanel
    implements com.google.gwt.event.dom.client.HasScrollHandlers, com.google.gwt.event.dom.client.ScrollHandler
    A scrollhandlers similar to ScrollPanel.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

        com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
    • Field Summary

      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • 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 interface com.google.gwt.event.shared.HasHandlers

        fireEvent
    • Constructor Detail

      • FocusableScrollPanel

        public FocusableScrollPanel()
      • FocusableScrollPanel

        public FocusableScrollPanel​(boolean useFakeFocusElement)
    • Method Detail

      • setWidget

        public void setWidget​(com.google.gwt.user.client.ui.Widget w)
        Specified by:
        setWidget in interface com.google.gwt.user.client.ui.HasOneWidget
        Overrides:
        setWidget in class com.google.gwt.user.client.ui.SimplePanel
      • addScrollHandler

        public com.google.gwt.event.shared.HandlerRegistration addScrollHandler​(com.google.gwt.event.dom.client.ScrollHandler handler)
        Specified by:
        addScrollHandler in interface com.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:
        onScroll in interface com.google.gwt.event.dom.client.ScrollHandler
      • getFocusElement

        public com.google.gwt.user.client.Element getFocusElement()