java.lang.Object
java.lang.Enum<TileEventType>
org.vaadin.addons.componentfactory.leaflet.layer.events.types.TileEventType
All Implemented Interfaces:
Serializable, Comparable<TileEventType>, Constable, LeafletEventType

public enum TileEventType extends Enum<TileEventType> implements LeafletEventType
Enumeration of the tile related Leaflet event names fired by grid layers while loading tiles.
  • Enum Constant Details

    • loading

      public static final TileEventType loading
      Fired when the grid layer starts loading tiles.
    • tileunload

      public static final TileEventType tileunload
      Fired when a tile is removed (e.g. when a tile goes off the screen).
    • tileloadstart

      public static final TileEventType tileloadstart
      Fired when a tile is removed (e.g. when a tile goes off the screen).
    • tileerror

      public static final TileEventType tileerror
      Fired when there is an error loading a tile.
    • tileload

      public static final TileEventType tileload
      Fired when a tile loads.
    • load

      public static final TileEventType load
      Fired when the grid layer loaded all visible tiles.
  • Method Details

    • values

      public static TileEventType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TileEventType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getLeafletEvent

      public String getLeafletEvent()
      Returns the Leaflet event name of this event type.
      Specified by:
      getLeafletEvent in interface LeafletEventType
      Returns:
      the Leaflet event name