Package gov.nasa.worldwind.event
Class BulkRetrievalEvent
- java.lang.Object
-
- java.util.EventObject
-
- gov.nasa.worldwind.event.WWEvent
-
- gov.nasa.worldwind.event.BulkRetrievalEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class BulkRetrievalEvent extends WWEvent
Notifies of bulk retrieval events.- See Also:
BulkRetrievable
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
eventType
protected java.lang.String
item
static java.lang.String
RETRIEVAL_FAILED
Constant indicating retrieval failure.static java.lang.String
RETRIEVAL_SUCCEEDED
Constant indicating retrieval success.
-
Constructor Summary
Constructors Constructor Description BulkRetrievalEvent(BulkRetrievable source, java.lang.String eventType, java.lang.String item)
Creates a new event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEventType()
Returns the event type, one ofRETRIEVAL_SUCCEEDED
orRETRIEVAL_FAILED
.java.lang.String
getItem()
Returns the filestore location of the item whose retrieval succeeded or failed.BulkRetrievable
getSource()
Returns the event source.-
Methods inherited from class gov.nasa.worldwind.event.WWEvent
consume, isConsumed
-
-
-
-
Field Detail
-
RETRIEVAL_FAILED
public static java.lang.String RETRIEVAL_FAILED
Constant indicating retrieval failure.
-
RETRIEVAL_SUCCEEDED
public static java.lang.String RETRIEVAL_SUCCEEDED
Constant indicating retrieval success.
-
eventType
protected java.lang.String eventType
-
item
protected java.lang.String item
-
-
Constructor Detail
-
BulkRetrievalEvent
public BulkRetrievalEvent(BulkRetrievable source, java.lang.String eventType, java.lang.String item)
Creates a new event.- Parameters:
source
- the event source, typically either a tiled image layer, elevation model or placename layer.eventType
- indicates success or failure. One ofRETRIEVAL_SUCCEEDED
orRETRIEVAL_FAILED
.item
- the cache location of the item whose retrieval succeeded or failed.- See Also:
BulkRetrievable
-
-
Method Detail
-
getSource
public BulkRetrievable getSource()
Returns the event source.- Overrides:
getSource
in classjava.util.EventObject
- Returns:
- the event source, typically either a tiled image layer, elevation model or placename layer.
- See Also:
BulkRetrievable
-
getEventType
public java.lang.String getEventType()
Returns the event type, one ofRETRIEVAL_SUCCEEDED
orRETRIEVAL_FAILED
.- Returns:
- the event type.
-
getItem
public java.lang.String getItem()
Returns the filestore location of the item whose retrieval succeeded or failed.- Returns:
- the filestore location of the item.
-
-