|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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.google.gwt.user.client.ui.ScrollPanel
A simple panel that wraps its contents in a scrollable area.
Field Summary |
Fields inherited from class java.lang.Object |
typeId, typeName |
Constructor Summary | |
ScrollPanel()
Creates an empty scroll panel. |
|
ScrollPanel(Widget child)
Creates a new scroll panel with the given child widget. |
Method Summary | |
void |
ensureVisible(UIObject item)
Ensures that the specified item is visible, by adjusting the panel's scroll position. |
int |
getScrollPosition()
Gets the vertical scroll position. |
void |
setAlwaysShowScrollBars(boolean alwaysShow)
Sets whether this panel always shows its scroll bars, or only when necessary. |
void |
setScrollPosition(int position)
Sets the vertical scroll position. |
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel |
add, clear, getContainerElement, getWidget, getWidgetCount, getWidgetIndex, iterator, remove, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
adopt, disown, onAttach, onDetach |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
getParent, isAttached, onBrowserEvent, onLoad |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
equals, finalize, hashCode |
Constructor Detail |
public ScrollPanel()
public ScrollPanel(Widget child)
child
- the widget to be wrapped by the scroll panelMethod Detail |
public void ensureVisible(UIObject item)
item
- the item whose visibility is to be ensuredpublic void setScrollPosition(int position)
position
- the new vertical scroll position, in pixelspublic int getScrollPosition()
public void setAlwaysShowScrollBars(boolean alwaysShow)
alwaysShow
- true
to show scroll bars at all times
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |