Class BrowsingHistoryLocationImpl
java.lang.Object
dev.webfx.platform.windowlocation.spi.impl.PathLocationImpl
dev.webfx.platform.windowlocation.spi.impl.PathStateLocationImpl
dev.webfx.platform.windowhistory.spi.impl.BrowsingHistoryLocationImpl
- All Implemented Interfaces:
BrowsingHistoryLocation
,PathLocation
,PathStateLocation
public final class BrowsingHistoryLocationImpl
extends PathStateLocationImpl
implements BrowsingHistoryLocation
- Author:
- Bruno Salmon
-
Constructor Summary
ConstructorsConstructorDescriptionBrowsingHistoryLocationImpl
(PathStateLocation location, BrowsingHistoryEvent event, String key) -
Method Summary
Modifier and TypeMethodDescriptiongetEvent()
Returns an history event that describes the type of change that has been done to the URL to get there.Returns a location key of the current URL.void
setEvent
(BrowsingHistoryEvent event) Methods inherited from class dev.webfx.platform.windowlocation.spi.impl.PathStateLocationImpl
getState
Methods inherited from class dev.webfx.platform.windowlocation.spi.impl.PathLocationImpl
equals, getFragment, getPathname, getQueryString, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.webfx.platform.windowlocation.spi.PathLocation
getFragment, getHash, getPath, getPathname, getQueryString, getSearch
Methods inherited from interface dev.webfx.platform.windowlocation.spi.PathStateLocation
getState
-
Constructor Details
-
BrowsingHistoryLocationImpl
public BrowsingHistoryLocationImpl(PathStateLocation location, BrowsingHistoryEvent event, String key)
-
-
Method Details
-
setEvent
-
getEvent
Description copied from interface:BrowsingHistoryLocation
Returns an history event that describes the type of change that has been done to the URL to get there.- Specified by:
getEvent
in interfaceBrowsingHistoryLocation
- Returns:
- an BrowsingHistoryEvent object
-
getLocationKey
Description copied from interface:BrowsingHistoryLocation
Returns a location key of the current URL. A location key is a unique string that identifies a location. It is the one piece of data that most accurately answers the question "Where am I?".- Specified by:
getLocationKey
in interfaceBrowsingHistoryLocation
-