oracle.dss.util
Class DataAvailableEvent
java.lang.Object
|
+--java.util.EventObject
|
+--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
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DATA_AVAILABLE
public static final int DATA_AVAILABLE
- Data is now available.
DATA_UNAVAILABLE
public static final int DATA_UNAVAILABLE
- Data is no longer available.
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.
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
).
Copyright © 2003, Oracle. All Rights Reserved.