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
Modifier and TypeFieldDescriptionstatic final int
The history back flag.static final int
The history forward flag.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 history direction.boolean
Returns if the history direction is back.boolean
Returns if the history direction is forward.void
setHistoryDirection
(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:
true
if the history direction is back
-
isHistoryForward
Returns if the history direction is forward.- Returns:
true
if 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
-