com.vaadin.client.ui
Class FocusableScrollPanel

java.lang.Object
  extended by SimplePanel
      extended by com.vaadin.client.ui.SimpleFocusablePanel
          extended by com.vaadin.client.ui.FocusableScrollPanel
All Implemented Interfaces:
Focusable
Direct Known Subclasses:
VScrollTable.FocusableScrollContextPanel

public class FocusableScrollPanel
extends SimpleFocusablePanel

A scrollhandlers similar to ScrollPanel.


Constructor Summary
FocusableScrollPanel()
           
FocusableScrollPanel(boolean useFakeFocusElement)
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addScrollHandler(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(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(Widget w)
           
 
Methods inherited from class com.vaadin.client.ui.SimpleFocusablePanel
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, focus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FocusableScrollPanel

public FocusableScrollPanel()

FocusableScrollPanel

public FocusableScrollPanel(boolean useFakeFocusElement)
Method Detail

setWidget

public void setWidget(Widget w)

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(ScrollHandler handler)

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(ScrollEvent event)

getFocusElement

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


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