Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1)
E10684-05


oracle.adf.view.rich.event
Class WindowUnloadedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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

Field Summary

 

Fields inherited from class java.util.EventObject
source

 

Constructor Summary
WindowUnloadedEvent(WindowIdProvider source, java.lang.String windowId, java.lang.String destination)
          Create a WindowUnloadedEvent

 

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

 

Constructor Detail

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

Method Detail

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

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1)
E10684-05


Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.