public class CmsScrollPanel
extends com.google.gwt.user.client.ui.ScrollPanel
implements com.google.gwt.event.logical.shared.HasResizeHandlers, com.alkacon.geranium.client.I_DescendantResizeHandler
| 限定符和类型 | 类和说明 |
|---|---|
protected class |
CmsScrollPanel.ResizeButton
Inner class for the resize button.
|
protected class |
CmsScrollPanel.ResizeEventPreviewHandler
Drag and drop event preview handler.
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected com.google.gwt.event.shared.HandlerRegistration |
m_previewHandlerRegistration
The preview handler registration.
|
| 限定符 | 构造器和说明 |
|---|---|
|
CmsScrollPanel()
Constructor.
|
protected |
CmsScrollPanel(com.google.gwt.dom.client.Element root,
com.google.gwt.dom.client.Element scrollabel,
com.google.gwt.dom.client.Element container)
Constructor to be used by
CmsScrollPanelImpl. |
| 限定符和类型 | 方法和说明 |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler handler) |
void |
enableFocusedScrolling(boolean enable)
Enables or disables the focused scrolling feature.
|
protected void |
ensureFocusedScrolling()
Ensures the focused scrolling event preview handler is registered.
|
protected void |
onAttach() |
protected void |
onDetach() |
void |
onResizeDescendant() |
boolean |
remove(com.google.gwt.user.client.ui.Widget w) |
void |
setDefaultHeight(double height)
Sets the default height of the scrolling panel.
|
protected void |
setNewHeight(com.google.gwt.user.client.Event event)
Executed on mouse move while dragging.
|
void |
setResizable(boolean resize)
Sets the scrollpanel resizeable.
|
protected void |
setStartParameters(com.google.gwt.event.dom.client.MouseDownEvent event)
Sets the start parameters of the resize event.
|
addScrollHandler, addScrollListener, ensureVisible, getContainerElement, getHorizontalScrollPosition, getMaximumHorizontalScrollPosition, getMaximumVerticalScrollPosition, getMinimumHorizontalScrollPosition, getMinimumVerticalScrollPosition, getScrollableElement, getScrollPosition, getVerticalScrollPosition, isTouchScrollingDisabled, onResize, removeScrollListener, scrollToBottom, scrollToLeft, scrollToRight, scrollToTop, setAlwaysShowScrollBars, setHeight, setHorizontalScrollPosition, setScrollPosition, setSize, setTouchScrollingDisabled, setVerticalScrollPosition, setWidthadd, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString, unsinkEventsprotected com.google.gwt.event.shared.HandlerRegistration m_previewHandlerRegistration
public CmsScrollPanel()
ScrollPanel.ScrollPanel()protected CmsScrollPanel(com.google.gwt.dom.client.Element root,
com.google.gwt.dom.client.Element scrollabel,
com.google.gwt.dom.client.Element container)
CmsScrollPanelImpl.root - the root element of the widgetscrollabel - the scrollable element of the widgetcontainer - the container element of the widgetpublic com.google.gwt.event.shared.HandlerRegistration addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler handler)
addResizeHandler 在接口中 com.google.gwt.event.logical.shared.HasResizeHandlersHasResizeHandlers.addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler)public void enableFocusedScrolling(boolean enable)
Focused scrolling is enabled by default.
enable - true to enable the focused scrolling featurepublic void onResizeDescendant()
onResizeDescendant 在接口中 com.alkacon.geranium.client.I_DescendantResizeHandlerI_DescendantResizeHandler.onResizeDescendant()public boolean remove(com.google.gwt.user.client.ui.Widget w)
remove 在接口中 com.google.gwt.user.client.ui.HasWidgetsremove 在类中 com.google.gwt.user.client.ui.SimplePanelSimplePanel.remove(com.google.gwt.user.client.ui.Widget)public void setDefaultHeight(double height)
height - public void setResizable(boolean resize)
resize - true if the scrollpanel should be resizeable.protected void ensureFocusedScrolling()
protected void onAttach()
onAttach 在类中 com.google.gwt.user.client.ui.ScrollPanelScrollPanel.onAttach()protected void onDetach()
onDetach 在类中 com.google.gwt.user.client.ui.ScrollPanelScrollPanel.onDetach()protected void setNewHeight(com.google.gwt.user.client.Event event)
event - the eventprotected void setStartParameters(com.google.gwt.event.dom.client.MouseDownEvent event)
event -