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.google.gwt.user.client.ui.ScrollPanel |
A simple panel that wraps its contents in a scrollable area.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an empty scroll panel.
| |||||||||||
Creates a new scroll panel with the given child widget.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a
ScrollEvent handler. | |||||||||||
This method is deprecated.
Use
addScrollHandler(ScrollHandler) instead
| |||||||||||
Ensures that the specified item is visible, by adjusting the panel's scroll
position.
| |||||||||||
Gets the horizontal scroll position.
| |||||||||||
Gets the vertical scroll position.
| |||||||||||
This method must be called whenever the implementor's size has been
modified.
| |||||||||||
This method is deprecated.
Use the
removeHandler()
method on the object returned by addScrollHandler(ScrollHandler) instead
| |||||||||||
Scroll to the bottom of this panel.
| |||||||||||
Scroll to the far left of this panel.
| |||||||||||
Scroll to the far right of this panel.
| |||||||||||
Scroll to the top of this panel.
| |||||||||||
Sets whether this panel always shows its scroll bars, or only when
necessary.
| |||||||||||
Sets the object's height.
| |||||||||||
Sets the horizontal scroll position.
| |||||||||||
Sets the vertical scroll position.
| |||||||||||
Sets the object's size.
| |||||||||||
Sets the object's width.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Override this method to specify that an element other than the root element
be the container for the panel's child widget.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.SimplePanel
| |||||||||||
From class
com.google.gwt.user.client.ui.Panel
| |||||||||||
From class
com.google.gwt.user.client.ui.Widget
| |||||||||||
From class
com.google.gwt.user.client.ui.UIObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.gwt.event.dom.client.HasScrollHandlers
| |||||||||||
From interface com.google.gwt.event.logical.shared.HasAttachHandlers | |||||||||||
From interface com.google.gwt.event.shared.HasHandlers | |||||||||||
From interface
com.google.gwt.user.client.EventListener
| |||||||||||
From interface
com.google.gwt.user.client.ui.AcceptsOneWidget
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasOneWidget
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasWidgets
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
| |||||||||||
From interface
com.google.gwt.user.client.ui.IsWidget
| |||||||||||
From interface
com.google.gwt.user.client.ui.RequiresResize
| |||||||||||
From interface
com.google.gwt.user.client.ui.SourcesScrollEvents
| |||||||||||
From interface
java.lang.Iterable
|
Creates an empty scroll panel.
Creates a new scroll panel with the given child widget.
child | the widget to be wrapped by the scroll panel |
---|
Adds a ScrollEvent
handler.
handler | the scroll handler |
---|
HandlerRegistration
used to remove this handler
This method is deprecated.
Use addScrollHandler(ScrollHandler)
instead
Adds a listener interface to receive scroll events.
listener | the listener interface to add |
---|
Ensures that the specified item is visible, by adjusting the panel's scroll position.
item | the item whose visibility is to be ensured |
---|
Gets the horizontal scroll position.
Gets the vertical scroll position.
This method must be called whenever the implementor's size has been modified.
This method is deprecated.
Use the removeHandler()
method on the object returned by addScrollHandler(ScrollHandler)
instead
Removes a previously added scroll listener.
listener | the listener interface to remove |
---|
Scroll to the bottom of this panel.
Scroll to the far left of this panel.
Scroll to the far right of this panel.
Scroll to the top of this panel.
Sets whether this panel always shows its scroll bars, or only when necessary.
alwaysShow | true to show scroll bars at all times
|
---|
Sets the object's height. This height does not include decorations such as border, margin, and padding.
height | the object's new height, in absolute CSS units (e.g. "10px", "1em" but not "50%") |
---|
Sets the horizontal scroll position.
position | the new horizontal scroll position, in pixels |
---|
Sets the vertical scroll position.
position | the new vertical scroll position, in pixels |
---|
Sets the object's size. This size does not include decorations such as border, margin, and padding.
width | the object's new width, in absolute CSS units (e.g. "10px", "1em", but not "50%") |
---|---|
height | the object's new height, in absolute CSS units (e.g. "10px", "1em", but not "50%") |
Sets the object's width. This width does not include decorations such as border, margin, and padding.
width | the object's new width, in absolute CSS units (e.g. "10px", "1em", but not "50%") |
---|
Override this method to specify that an element other than the root element
be the container for the panel's child widget. This can be useful when you
want to create a simple panel that decorates its contents.
Note that this method continues to return the
Element
class defined in the
User
module to maintain backwards compatibility.