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.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 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.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.vaadin.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, 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
-
-
-
-
Method Detail
-
setWidget
public void setWidget(com.google.gwt.user.client.ui.Widget w)
- Specified by:
setWidget
in interfacecom.google.gwt.user.client.ui.HasOneWidget
- Overrides:
setWidget
in classcom.google.gwt.user.client.ui.SimplePanel
-
setFocus
public void setFocus(boolean focus)
- Overrides:
setFocus
in classSimpleFocusablePanel
-
setTabIndex
public void setTabIndex(int tabIndex)
- Overrides:
setTabIndex
in classSimpleFocusablePanel
-
addScrollHandler
public com.google.gwt.event.shared.HandlerRegistration addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler handler)
- Specified by:
addScrollHandler
in 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:
onScroll
in interfacecom.google.gwt.event.dom.client.ScrollHandler
-
getFocusElement
public com.google.gwt.user.client.Element getFocusElement()
-
-