Class LeafletMapConnector

java.lang.Object
com.vaadin.client.ui.AbstractConnector
com.vaadin.client.ui.AbstractComponentConnector
com.vaadin.client.ui.AbstractHasComponentsConnector
io.jmix.mapsui.widget.leaflet.client.LeafletMapConnector
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, com.vaadin.client.communication.StateChangeEvent.StateChangeHandler, com.vaadin.client.ComponentConnector, com.vaadin.client.ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler, com.vaadin.client.HasComponentsConnector, com.vaadin.client.HasWidget, com.vaadin.client.ServerConnector, com.vaadin.client.ui.HasContextHelpConnector, com.vaadin.client.ui.HasErrorIndicator, com.vaadin.client.ui.layout.ElementResizeListener, com.vaadin.shared.Connector, Serializable

public class LeafletMapConnector extends com.vaadin.client.ui.AbstractHasComponentsConnector implements com.vaadin.client.ui.layout.ElementResizeListener
See Also:
  • Field Summary

    Fields inherited from class com.vaadin.client.ui.AbstractComponentConnector

    SIGNIFICANT_MOVE_THRESHOLD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Map
    createMap(com.google.gwt.dom.client.Element mapElement, MapOptions options)
     
    protected com.google.gwt.user.client.ui.Widget
     
     
     
     
     
    protected void
     
    void
    onConnectorHierarchyChange(com.vaadin.client.ConnectorHierarchyChangeEvent connectorHierarchyChangeEvent)
     
    void
    onElementResize(com.vaadin.client.ui.layout.ElementResizeEvent e)
     
    void
    onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent)
     
    void
     
    protected void
     
    void
     
     
    void
    updateCaption(com.vaadin.client.ComponentConnector connector)
     

    Methods inherited from class com.vaadin.client.ui.AbstractHasComponentsConnector

    addConnectorHierarchyChangeHandler, getChildComponents, setChildComponents

    Methods inherited from class com.vaadin.client.ui.AbstractComponentConnector

    contextHelpIconClick, contextHelpIconClick, delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, getTooltipInfo, hasContextHelpIconListeners, hasTooltip, isContextHelpIconEnabled, isContextHelpTooltipEnabled, isErrorIndicatorVisible, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSize, updateWidgetStyleNames

    Methods inherited from class com.vaadin.client.ui.AbstractConnector

    addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, unregisterRpc

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.shared.Connector

    getConnectorId

    Methods inherited from interface com.vaadin.client.ServerConnector

    addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getTag, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, updateEnabledState
  • Constructor Details

    • LeafletMapConnector

      public LeafletMapConnector()
  • Method Details

    • getWidget

      public MapWidget getWidget()
      Specified by:
      getWidget in interface com.vaadin.client.HasWidget
      Overrides:
      getWidget in class com.vaadin.client.ui.AbstractComponentConnector
    • getState

      public LeafletMapState getState()
      Specified by:
      getState in interface com.vaadin.client.ComponentConnector
      Specified by:
      getState in interface com.vaadin.client.ServerConnector
      Overrides:
      getState in class com.vaadin.client.ui.AbstractComponentConnector
    • createWidget

      protected com.google.gwt.user.client.ui.Widget createWidget()
      Overrides:
      createWidget in class com.vaadin.client.ui.AbstractComponentConnector
    • init

      protected void init()
      Overrides:
      init in class com.vaadin.client.ui.AbstractConnector
    • onUnregister

      public void onUnregister()
      Specified by:
      onUnregister in interface com.vaadin.client.ServerConnector
      Overrides:
      onUnregister in class com.vaadin.client.ui.AbstractComponentConnector
    • onStateChanged

      public void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent)
      Specified by:
      onStateChanged in interface com.vaadin.client.communication.StateChangeEvent.StateChangeHandler
      Overrides:
      onStateChanged in class com.vaadin.client.ui.AbstractComponentConnector
    • createMap

      protected Map createMap(com.google.gwt.dom.client.Element mapElement, MapOptions options)
    • reportViewPortToServer

      protected void reportViewPortToServer()
    • getMap

      public Map getMap()
    • updateCaption

      public void updateCaption(com.vaadin.client.ComponentConnector connector)
      Specified by:
      updateCaption in interface com.vaadin.client.HasComponentsConnector
    • onConnectorHierarchyChange

      public void onConnectorHierarchyChange(com.vaadin.client.ConnectorHierarchyChangeEvent connectorHierarchyChangeEvent)
      Specified by:
      onConnectorHierarchyChange in interface com.vaadin.client.ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler
    • onElementResize

      public void onElementResize(com.vaadin.client.ui.layout.ElementResizeEvent e)
      Specified by:
      onElementResize in interface com.vaadin.client.ui.layout.ElementResizeListener
    • setLayersControl

      public void setLayersControl(Layers l)
    • toLeafletBounds

      public static LatLngBounds toLeafletBounds(Bounds b)
    • getMapPixelPosition

      public Point getMapPixelPosition()