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 voiddoAcceptedPush(BrowsingHistoryLocationImpl historyLocation) protected voiddoAcceptedReplace(BrowsingHistoryLocationImpl historyLocation) intvoidgo(int offset) Differential navigation method.voidsetCurrentLocationIndex(int currentLocationIndex) voidtransitionTo(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, transitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:BrowsingHistoryDifferential navigation method.- Parameters:
offset- the differential step from the current location.
-
doAcceptedPush
- Specified by:
doAcceptedPushin classBrowsingHistoryBase
-
doAcceptedReplace
- Specified by:
doAcceptedReplacein classBrowsingHistoryBase
-