Search in sources :

Example 6 with Extension

use of com.vaadin.server.Extension in project v-leaflet by mstahv.

the class LMap method getZoomControl.

public LZoom getZoomControl() {
    for (Extension e : getExtensions()) {
        if (e instanceof LZoom) {
            return (LZoom) e;
        }
    }
    LZoom lZoom = new LZoom();
    addExtension(lZoom);
    return lZoom;
}
Also used : Extension(com.vaadin.server.Extension) LZoom(org.vaadin.addon.leaflet.control.LZoom)

Aggregations

Extension (com.vaadin.server.Extension)6 AbstractExtension (com.vaadin.server.AbstractExtension)2 ComponentCellKeyExtension (com.haulmont.cuba.web.toolkit.ui.renderers.componentrenderer.ComponentCellKeyExtension)1 DetailsKeysExtension (com.haulmont.cuba.web.toolkit.ui.renderers.componentrenderer.DetailsKeysExtension)1 FocusPreserveExtension (com.haulmont.cuba.web.toolkit.ui.renderers.componentrenderer.FocusPreserveExtension)1 RpcDataProviderExtension (com.vaadin.server.communication.data.RpcDataProviderExtension)1 LLayers (org.vaadin.addon.leaflet.control.LLayers)1 LZoom (org.vaadin.addon.leaflet.control.LZoom)1