Package org.opencms.ui.shared.components
Class CmsHistoryState
java.lang.Object
com.vaadin.shared.communication.SharedState
com.vaadin.shared.AbstractComponentState
org.opencms.ui.shared.components.CmsHistoryState
- All Implemented Interfaces:
Serializable
The history state.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe history back flag.static final intThe history forward flag.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 history direction.booleanReturns if the history direction is back.booleanReturns if the history direction is forward.voidsetHistoryDirection(int direction) Sets the history direction.
-
Field Details
-
HISTORY_BACK
The history back flag.- See Also:
-
HISTORY_FORWARD
The history forward flag.- See Also:
-
-
Constructor Details
-
CmsHistoryState
public CmsHistoryState()
-
-
Method Details
-
getHistoryDirection
Returns the history direction.- Returns:
- the history direction
-
isHistoryBack
Returns if the history direction is back.- Returns:
trueif the history direction is back
-
isHistoryForward
Returns if the history direction is forward.- Returns:
trueif the history direction is forward
-
setHistoryDirection
Sets the history direction.Use -1 for history back, and +1 for history forward.
- Parameters:
direction- the history direction
-