Class EventTypeRegistry
java.lang.Object
org.vaadin.addons.componentfactory.leaflet.layer.events.types.EventTypeRegistry
Registry that maps Leaflet event names to their corresponding
LeafletEventType constants.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Enum<T> & LeafletEventType>
voidRegisters all constants of the given event type enum so they can be looked up by their Leaflet event name.static LeafletEventTypeReturns the registered event type matching the given Leaflet event name.
-
Constructor Details
-
EventTypeRegistry
public EventTypeRegistry()
-
-
Method Details
-
register
Registers all constants of the given event type enum so they can be looked up by their Leaflet event name.- Type Parameters:
T- the enum type- Parameters:
eventType- the enum class implementingLeafletEventTypeto register
-
valueOf
Returns the registered event type matching the given Leaflet event name.- Parameters:
stringValue- the Leaflet event name- Returns:
- the matching event type, or
nullif none is registered
-