|
|||||||||
| 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.Composite
com.maryanovsky.gwtutils.client.ui.ButtonScrollPanel
public class ButtonScrollPanel
A scroll panel which scrolls its contents with two buttons instead of a scroll bar.
| Nested Class Summary | |
|---|---|
static interface |
ButtonScrollPanel.Resources
The interface for the resources required by the scroll pane. |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
HasWidgets.ForIsWidget |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
ButtonScrollPanel(ButtonScrollPanel.Resources resources)
Creates a new ButtonScrollPanel with the specified resources. |
|
| Method Summary | |
|---|---|
void |
add(Widget widget)
Adds a widget. |
void |
clear()
Removes the widget. |
SimplePanel |
getContentPanel()
Returns the panel where the scrollable child should be placed. |
int |
getScrollDelay()
Returns the delay between scrolls, in milliseconds. |
int |
getScrollStep()
Returns the number of pixels a single step scrolls. |
boolean |
isScrollOnMouseOver()
Returns whether the scrolling occurs on mouse-over. |
Iterator<Widget> |
iterator()
Returns an iterator listing the sole child, if any. |
boolean |
remove(Widget widget)
Removes the widget. |
void |
setContentWidget(Widget widget)
Sets the content widget. |
void |
setScrollDelay(int scrollDelay)
Sets the delay between scrolls, in milliseconds. |
void |
setScrollOnMouseOver(boolean isScrollOnMouseOver)
Sets whether the scrolling will occur on mouse-over. |
void |
setScrollStep(int scrollStep)
Sets the number of pixels a single step will scroll. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ButtonScrollPanel(ButtonScrollPanel.Resources resources)
ButtonScrollPanel with the specified resources.
| Method Detail |
|---|
public SimplePanel getContentPanel()
public void add(Widget widget)
add in interface HasWidgetspublic void setContentWidget(Widget widget)
public void clear()
clear in interface HasWidgetspublic Iterator<Widget> iterator()
iterator in interface HasWidgetsiterator in interface Iterable<Widget>public boolean remove(Widget widget)
remove in interface HasWidgetspublic void setScrollStep(int scrollStep)
public int getScrollStep()
public void setScrollDelay(int scrollDelay)
public int getScrollDelay()
public boolean isScrollOnMouseOver()
false, the scrolling will only occur when the user actually
presses the buttons.
public void setScrollOnMouseOver(boolean isScrollOnMouseOver)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||