Package org.opencms.ui.shared.components
Class CmsScrollPositionCssState
java.lang.Object
com.vaadin.shared.communication.SharedState
com.vaadin.shared.AbstractComponentState
org.opencms.ui.shared.components.CmsScrollPositionCssState
- All Implemented Interfaces:
Serializable
The scroll position CSS shared state.
- See Also:
-
Field Summary
Fields inherited from class com.vaadin.shared.AbstractComponentState
caption, captionAsHtml, description, descriptionContentMode, errorLevel, errorMessage, height, id, primaryStyleName, styles, width
Fields inherited from class com.vaadin.shared.communication.SharedState
enabled, registeredEventListeners, resources
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the barrier margin.int
Returns the scroll barrier.Sets the style name.void
setBarrierMargin
(int barrierMargin) Sets the barrier margin.void
setScrollBarrier
(int scrollBarrier) Sets the scroll barrier.void
setStyleName
(String styleName) Sets the style name.
-
Constructor Details
-
CmsScrollPositionCssState
public CmsScrollPositionCssState()
-
-
Method Details
-
getBarrierMargin
Returns the barrier margin.- Returns:
- the barrier margin
-
getScrollBarrier
Returns the scroll barrier.- Returns:
- the scroll barrier
-
getStyleName
Sets the style name.- Returns:
- the style name
-
setBarrierMargin
Sets the barrier margin.- Parameters:
barrierMargin
- the barrier margin
-
setScrollBarrier
Sets the scroll barrier.- Parameters:
scrollBarrier
- the scroll barrier
-
setStyleName
Sets the style name.- Parameters:
styleName
- the style name
-