Class LocationDisplay.DataSourceStatusChangedEvent

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    LocationDisplay

    public static final class LocationDisplay.DataSourceStatusChangedEvent
    extends java.util.EventObject
    Holds information from a change to the status of a LocationDataSource.
    Since:
    100.0.0
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      DataSourceStatusChangedEvent​(LocationDisplay source, boolean isStarted)
      Creates a new DataSourceStatusChangedEvent with the given LocationDisplay and state.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getError()
      Gets the error when starting the LocationDataSource, or null if there was no error.
      LocationDisplay getSource()
      Gets the LocationDisplay that raised the event.
      boolean isStarted()
      Gets the new status of the LocationDataSource.
      • Methods inherited from class java.util.EventObject

        toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DataSourceStatusChangedEvent

        public DataSourceStatusChangedEvent​(LocationDisplay source,
                                            boolean isStarted)
        Creates a new DataSourceStatusChangedEvent with the given LocationDisplay and state.
        Parameters:
        source - the LocationDisplay that raised the event
        isStarted - the new boolean value indicating the starting status of LocationDataSource
        Throws:
        java.lang.IllegalArgumentException - if the source is null
        Since:
        100.0.0
    • Method Detail

      • getSource

        public LocationDisplay getSource()
        Gets the LocationDisplay that raised the event.
        Overrides:
        getSource in class java.util.EventObject
        Returns:
        the LocationDisplay that raised the event
        Since:
        100.0.0
      • isStarted

        public boolean isStarted()
        Gets the new status of the LocationDataSource.
        Returns:
        true if the LocationDataSource associated with the LocationDisplay has been started; false otherwise
        Since:
        100.0.0
      • getError

        public java.lang.Throwable getError()
        Gets the error when starting the LocationDataSource, or null if there was no error. This is equivalent to calling LocationDisplay.getLocationDataSource().getError().
        Returns:
        the error, or null if there was no error
        Since:
        100.0.0