Package com.luciad.lucy
Class TLcyDataSourceEvent
java.lang.Object
java.util.EventObject
com.luciad.lucy.TLcyDataSourceEvent
- All Implemented Interfaces:
Serializable
Event fired when a set of data sources is handled. At the beginning it is
the
HANDLING_STARTED
event that is fired, at the end the
HANDLING_ENDED
.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Indicates that the handling of the data sources is ended.static final int
Indicates that the handling of the data sources is started.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTLcyDataSourceEvent
(Object source, int aID, ILcdDataSource[] aDataSources, ILcyGenericMapComponent<? extends ILcdView, ? extends ILcdLayer> aGeneralMapComponent) Creates a newTLcyDataSourceEvent
.TLcyDataSourceEvent
(Object source, int aID, String[] aDataSources, ILcyGenericMapComponent<? extends ILcdView, ? extends ILcdLayer> aGeneralMapComponent) Creates a newTLcyDataSourceEvent
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of data source objects set in the data source constructor.String[]
Returns the list of data source strings set in the string constructor.int
getID()
Gets the id of the event.ILcyGenericMapComponent
<? extends ILcdView, ? extends ILcdLayer> Returns theILcyGenericMapComponent
set in the constructor.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
HANDLING_STARTED
public static final int HANDLING_STARTEDIndicates that the handling of the data sources is started.- See Also:
-
HANDLING_ENDED
public static final int HANDLING_ENDEDIndicates that the handling of the data sources is ended.- See Also:
-
-
Constructor Details
-
TLcyDataSourceEvent
public TLcyDataSourceEvent(Object source, int aID, String[] aDataSources, ILcyGenericMapComponent<? extends ILcdView, ? extends ILcdLayer> aGeneralMapComponent) Creates a newTLcyDataSourceEvent
.- Parameters:
source
- The source of the event.aID
- The id of the event. Must beHANDLING_STARTED
orHANDLING_ENDED
.aDataSources
- The list of data sources (String) involved in the event.aGeneralMapComponent
- The general map component involved in the event
-
TLcyDataSourceEvent
public TLcyDataSourceEvent(Object source, int aID, ILcdDataSource[] aDataSources, ILcyGenericMapComponent<? extends ILcdView, ? extends ILcdLayer> aGeneralMapComponent) Creates a newTLcyDataSourceEvent
.- Parameters:
source
- The source of the event.aID
- The id of the event. Must beHANDLING_STARTED
orHANDLING_ENDED
.aDataSources
- The list of data source objects (ILcdDataSource
) involved in the event.aGeneralMapComponent
- The general map component involved in the event
-
-
Method Details
-
getMapComponent
Returns theILcyGenericMapComponent
set in the constructor.- Returns:
- the
ILcyGenericMapComponent
set in the constructor.
-
getID
public int getID()Gets the id of the event.- Returns:
- the id of the event.
-
getDataSources
Returns the list of data source strings set in the string constructor.- Returns:
- the list of data source strings set in the string constructor or an empty array if the data source constructor was used.
- See Also:
-
getDataSourceObjects
Returns the list of data source objects set in the data source constructor.- Returns:
- the list of data source objects set in the data source constructor or an empty array if the string constructor was used.
- See Also:
-