Class MemoryBrowsingHistory
java.lang.Object
dev.webfx.platform.windowhistory.spi.impl.BrowsingHistoryBase
dev.webfx.platform.windowhistory.spi.impl.MemoryBrowsingHistory
- All Implemented Interfaces:
BrowsingHistory
- Author:
- Bruno Salmon
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doAcceptedPush
(BrowsingHistoryLocationImpl historyLocation) protected void
doAcceptedReplace
(BrowsingHistoryLocationImpl historyLocation) int
void
go
(int offset) Differential navigation method.void
setCurrentLocationIndex
(int currentLocationIndex) void
transitionTo
(BrowsingHistoryLocation location) Methods inherited from class dev.webfx.platform.windowhistory.spi.impl.BrowsingHistoryBase
checkBeforeAsync, checkBeforeThenTransit, checkBeforeUnload, checkBeforeUnloadThenCheckBeforeThenTransit, createHistoryLocation, createHistoryLocation, createLocationKey, createPathStateLocation, doAcceptedPop, fireLocationChanged, fullToMountPath, getMountPoint, getPath, isGoingBackward, listen, listenBeforeAsync, listenBeforeUnload, mountToFullPath, push, replace, setGoingBackward, setMountPoint, transit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.webfx.platform.windowhistory.spi.BrowsingHistory
goBack, goForward, listenBefore, push, push, replace, replace
-
Field Details
-
locationStack
-
-
Constructor Details
-
MemoryBrowsingHistory
public MemoryBrowsingHistory()
-
-
Method Details
-
getCurrentLocationIndex
public int getCurrentLocationIndex() -
setCurrentLocationIndex
public void setCurrentLocationIndex(int currentLocationIndex) -
getCurrentLocation
- Returns:
- the current location
-
transitionTo
-
go
public void go(int offset) Description copied from interface:BrowsingHistory
Differential navigation method.- Parameters:
offset
- the differential step from the current location.
-
doAcceptedPush
- Specified by:
doAcceptedPush
in classBrowsingHistoryBase
-
doAcceptedReplace
- Specified by:
doAcceptedReplace
in classBrowsingHistoryBase
-