| 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
Constructor Summary | |
public | ScrollPanel() Creates an empty scroll panel. | public | ScrollPanel(Widget child) Creates a new scroll panel with the given child widget. |
ScrollPanel | public ScrollPanel()(Code) | | Creates an empty scroll panel.
|
ScrollPanel | public ScrollPanel(Widget child)(Code) | | Creates a new scroll panel with the given child widget.
Parameters: child - the widget to be wrapped by the scroll panel |
ensureVisible | public void ensureVisible(UIObject item)(Code) | | Ensures that the specified item is visible, by adjusting the panel's scroll
position.
Parameters: item - the item whose visibility is to be ensured |
getHorizontalScrollPosition | public int getHorizontalScrollPosition()(Code) | | Gets the horizontal scroll position.
the horizontal scroll position, in pixels |
getScrollPosition | public int getScrollPosition()(Code) | | Gets the vertical scroll position.
the vertical scroll position, in pixels |
onBrowserEvent | public void onBrowserEvent(Event event)(Code) | | |
setAlwaysShowScrollBars | public void setAlwaysShowScrollBars(boolean alwaysShow)(Code) | | Sets whether this panel always shows its scroll bars, or only when
necessary.
Parameters: alwaysShow - true to show scroll bars at all times |
setHeight | public void setHeight(String height)(Code) | | Sets the object's height. This height does not include decorations such as
border, margin, and padding.
Parameters: height - the object's new height, in absolute CSS units (e.g. "10px","1em" but not "50%") |
setHorizontalScrollPosition | public void setHorizontalScrollPosition(int position)(Code) | | Sets the horizontal scroll position.
Parameters: position - the new horizontal scroll position, in pixels |
setScrollPosition | public void setScrollPosition(int position)(Code) | | Sets the vertical scroll position.
Parameters: position - the new vertical scroll position, in pixels |
setSize | public void setSize(String width, String height)(Code) | | Sets the object's size. This size does not include decorations such as
border, margin, and padding.
Parameters: width - the object's new width, in absolute CSS units (e.g. "10px","1em", but not "50%") Parameters: height - the object's new height, in absolute CSS units (e.g. "10px","1em", but not "50%") |
setWidth | public void setWidth(String width)(Code) | | Sets the object's width. This width does not include decorations such as
border, margin, and padding.
Parameters: width - the object's new width, in absolute CSS units (e.g. "10px","1em", but not "50%") |
|
|