Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

oracle.dss.util
Class DataAvailableEvent

java.lang.Object
  extended by java.util.EventObject
      extended by oracle.dss.util.DataAvailableEvent
All Implemented Interfaces:
java.io.Serializable

public class DataAvailableEvent
extends java.util.EventObject

Describes a change in the availability of data. Data providers fire this event to provide a usable DataAccess to a view and to notify the view when the DataAccess is no longer usable. Views listen for this event in order to remain current with the data provider.

See Also:
Serialized Form

Field Summary
protected  DataAccess _provider
           
protected  int _type
           
static int DATA_AVAILABLE
          Data is now available.
static int DATA_UNAVAILABLE
          Data is no longer available.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DataAvailableEvent(java.lang.Object source, DataAccess provider)
          Constructor for data availability only.
DataAvailableEvent(java.lang.Object source, int type, DataAccess provider)
          Constructor for specifying either availability or unavailability.
 
Method Summary
 DataAccess getDataAccess()
          Retrieves the DataAccess for this event.
 int getType()
          Retrieves the type of change in availability.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATA_AVAILABLE

public static final int DATA_AVAILABLE
Data is now available.

See Also:
Constant Field Values

DATA_UNAVAILABLE

public static final int DATA_UNAVAILABLE
Data is no longer available.

See Also:
Constant Field Values

_type

protected int _type

_provider

protected DataAccess _provider
Constructor Detail

DataAvailableEvent

public DataAvailableEvent(java.lang.Object source,
                          int type,
                          DataAccess provider)
Constructor for specifying either availability or unavailability.

Parameters:
source - The source of this event.
type - A constant that specifies whether the data is available or unavailable.
provider - The DataAccess. If type is DATA_AVAILABLE, the DataAccess that provides access to the data. If type is DATA_UNAVAILABLE, the DataAccess that did provide access to the data but is no longer usable.

DataAvailableEvent

public DataAvailableEvent(java.lang.Object source,
                          DataAccess provider)
Constructor for data availability only.

Parameters:
source - The source of this event.
provider - The DataAccess that provides access to the data.
Method Detail

getType

public int getType()
Retrieves the type of change in availability.

Returns:
A constant that indicates whether the data is available or unavailable.

getDataAccess

public DataAccess getDataAccess()
Retrieves the DataAccess for this event.

Returns:
The DataAccess that provides access to the data (if the getType method returns DATA_AVAILABLE), or that is no longer usable (if the getType method returns DATA_UNAVAILABLE).

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

Copyright © 1997, 2011, Oracle. All rights reserved.