Skip navigation links
oracle.adf.view.rich.event
Class WindowUnloadedEvent
java.lang.Object
java.util.EventObject
oracle.adf.view.rich.event.WindowUnloadedEvent
- All Implemented Interfaces:
- java.io.Serializable
-
public class WindowUnloadedEvent
- extends java.util.EventObject
Event that provides notification that a window has been unloaded. This can be delivered because of a server-side redirect, or because on the client a user clicked a link, used the Back, Next, or Refresh buttons or is closing the window, or any other browser action that results in page-to-page navigation. While the view layer will attempt to call this method when applicable, there is no guarantee that it will be called in all circumstances - a best effort is made.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Method Summary |
java.lang.String |
getDestination()
Returns the URL to which the page is navigating. |
java.lang.String |
getWindowId()
Returns the window ID of the window being closed. |
java.lang.String |
toString()
|
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WindowUnloadedEvent
public WindowUnloadedEvent(WindowIdProvider source,
java.lang.String windowId,
java.lang.String destination)
- Create a WindowUnloadedEvent
- Parameters:
source
- the WindowIdProvider delivering the event
windowId
- the window ID, possibly null
destination
- the URL that the page is navigating to
getWindowId
public java.lang.String getWindowId()
- Returns the window ID of the window being closed. This may be null if a WindowIdProvider requested window unloaded events but did not provide a window ID.
getDestination
public java.lang.String getDestination()
- Returns the URL to which the page is navigating. This will often be null - when the user hits Refresh/Back/Next buttons, for example, it is impossible to determine the destination URL. However, in scenarios where the destination can be determined, this property will be made available.
The destination is not guaranteed to be normalized; it may be absolute, page-relative, or server-relative. It is also not guaranteed to be correct even when non-null, as a browser may be redirected to an alternate destination, bu.
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.util.EventObject
Skip navigation links
Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.