Package org.opencms.gwt.client.ui
Class CmsScrollPanelImpl
- 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
-
- org.opencms.gwt.client.ui.CmsScrollPanel
-
- org.opencms.gwt.client.ui.CmsScrollPanelImpl
-
- All Implemented Interfaces:
com.google.gwt.event.dom.client.HasScrollHandlers
,com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.logical.shared.HasResizeHandlers
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.AcceptsOneWidget
,com.google.gwt.user.client.ui.HasHorizontalScrolling
,com.google.gwt.user.client.ui.HasOneWidget
,com.google.gwt.user.client.ui.HasScrolling
,com.google.gwt.user.client.ui.HasVerticalScrolling
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.HasWidgets
,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
,com.google.gwt.user.client.ui.IsWidget
,com.google.gwt.user.client.ui.ProvidesResize
,com.google.gwt.user.client.ui.RequiresResize
,com.google.gwt.user.client.ui.SourcesScrollEvents
,java.lang.Iterable<com.google.gwt.user.client.ui.Widget>
,I_CmsDescendantResizeHandler
public class CmsScrollPanelImpl extends CmsScrollPanel
Scroll panel implementation with custom scroll bars. Works in all browsers but IE7.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opencms.gwt.client.ui.CmsScrollPanel
CmsScrollPanel.ResizeButton, CmsScrollPanel.ResizeEventPreviewHandler
-
-
Field Summary
-
Fields inherited from class org.opencms.gwt.client.ui.CmsScrollPanel
m_previewHandlerRegistration
-
-
Constructor Summary
Constructors Constructor Description CmsScrollPanelImpl()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.gwt.user.client.ui.VerticalScrollbar
getVerticalScrollBar()
Returns the vertical scroll bar.java.util.Iterator<com.google.gwt.user.client.ui.Widget>
iterator()
protected void
onAttach()
void
onBrowserEvent(com.google.gwt.user.client.Event event)
protected void
onLoad()
void
onResizeDescendant()
This method should be called when a descendant widget changes its size.protected void
onUnload()
void
setResizable(boolean resize)
Sets the scrollpanel resizeable.-
Methods inherited from class org.opencms.gwt.client.ui.CmsScrollPanel
addResizeHandler, enableFocusedScrolling, ensureFocusedScrolling, onDetach, remove, setDefaultHeight, setNewHeight, setStartParameters
-
Methods inherited from class com.google.gwt.user.client.ui.ScrollPanel
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, setWidth
-
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getWidget, setWidget, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
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, resolvePotentialElement, setElement, setElement, setPixelSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString
-
-
-
-
Constructor Detail
-
CmsScrollPanelImpl
public CmsScrollPanelImpl()
Constructor.
-
-
Method Detail
-
iterator
public java.util.Iterator<com.google.gwt.user.client.ui.Widget> iterator()
- Specified by:
iterator
in interfacecom.google.gwt.user.client.ui.HasWidgets
- Specified by:
iterator
in interfacejava.lang.Iterable<com.google.gwt.user.client.ui.Widget>
- Overrides:
iterator
in classcom.google.gwt.user.client.ui.SimplePanel
- See Also:
SimplePanel.iterator()
-
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event)
- Specified by:
onBrowserEvent
in interfacecom.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in classcom.google.gwt.user.client.ui.Widget
- See Also:
Widget.onBrowserEvent(com.google.gwt.user.client.Event)
-
onResizeDescendant
public void onResizeDescendant()
Description copied from interface:I_CmsDescendantResizeHandler
This method should be called when a descendant widget changes its size.- Specified by:
onResizeDescendant
in interfaceI_CmsDescendantResizeHandler
- Overrides:
onResizeDescendant
in classCmsScrollPanel
- See Also:
CmsScrollPanel.onResizeDescendant()
-
setResizable
public void setResizable(boolean resize)
Description copied from class:CmsScrollPanel
Sets the scrollpanel resizeable.- Overrides:
setResizable
in classCmsScrollPanel
- Parameters:
resize
- true if the scrollpanel should be resizeable.- See Also:
CmsScrollPanel.setResizable(boolean)
-
getVerticalScrollBar
protected com.google.gwt.user.client.ui.VerticalScrollbar getVerticalScrollBar()
Returns the vertical scroll bar.- Returns:
- the vertical scroll bar
-
onAttach
protected void onAttach()
- Overrides:
onAttach
in classCmsScrollPanel
- See Also:
ScrollPanel.onAttach()
-
onLoad
protected void onLoad()
- Overrides:
onLoad
in classcom.google.gwt.user.client.ui.Widget
- See Also:
Widget.onLoad()
-
onUnload
protected void onUnload()
- Overrides:
onUnload
in classcom.google.gwt.user.client.ui.Widget
- See Also:
Widget.onUnload()
-
-