com.vaadin.terminal.gwt.client.ui
Class FocusableScrollPanel

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.SimplePanel
                  extended by com.vaadin.terminal.gwt.client.ui.SimpleFocusablePanel
                      extended by com.vaadin.terminal.gwt.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.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 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
 
Constructor Summary
FocusableScrollPanel()
           
FocusableScrollPanel(boolean useFakeFocusElement)
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler handler)
           
 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.vaadin.terminal.gwt.client.ui.SimpleFocusablePanel
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, focus
 
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, adopt, clear, disown, 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
 
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, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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

setFocus

public void setFocus(boolean focus)
Overrides:
setFocus in class SimpleFocusablePanel

setTabIndex

public void setTabIndex(int tabIndex)
Overrides:
setTabIndex in class SimpleFocusablePanel

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


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.