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, widthFields inherited from class com.vaadin.shared.communication.SharedState
enabled, registeredEventListeners, resources -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the barrier margin.intReturns the scroll barrier.Sets the style name.voidsetBarrierMargin(int barrierMargin) Sets the barrier margin.voidsetScrollBarrier(int scrollBarrier) Sets the scroll barrier.voidsetStyleName(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
-