public class NavigationEvent extends EventObject
source
Constructor and Description |
---|
NavigationEvent(Router router,
Location location,
UI ui,
NavigationTrigger trigger)
Creates a new navigation event.
|
Modifier and Type | Method and Description |
---|---|
Location |
getLocation()
Gets the new location.
|
Router |
getSource() |
NavigationTrigger |
getTrigger()
Gets the type of user action that triggered this navigation event.
|
UI |
getUI()
Gets the UI in which the navigation occurs.
|
toString
public NavigationEvent(Router router, Location location, UI ui, NavigationTrigger trigger)
router
- the router handling the navigation, not null
location
- the new location, not null
ui
- the UI in which the navigation occurs, not null
trigger
- the type of user action that triggered this navigation event,
not null
public Router getSource()
getSource
in class EventObject
public Location getLocation()
null
public UI getUI()
public NavigationTrigger getTrigger()
null
Copyright © 2018. All rights reserved.