public class LeafletMapConnector
extends com.vaadin.client.ui.AbstractHasComponentsConnector
implements com.vaadin.client.ui.layout.ElementResizeListener
| Constructor and Description |
|---|
LeafletMapConnector() |
| Modifier and Type | Method and Description |
|---|---|
protected Map |
createMap(com.google.gwt.dom.client.Element mapElement,
MapOptions options) |
protected com.google.gwt.user.client.ui.Widget |
createWidget() |
Map |
getMap() |
Point |
getMapPixelPosition() |
LeafletMapState |
getState() |
MapWidget |
getWidget() |
protected void |
init() |
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 |
onUnregister() |
protected void |
reportViewPortToServer() |
void |
setLayersControl(Layers l) |
static LatLngBounds |
toLeafletBounds(Bounds b) |
void |
updateCaption(com.vaadin.client.ComponentConnector connector) |
addConnectorHierarchyChangeHandler, getChildComponents, setChildComponentscontextHelpIconClick, 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, updateWidgetStyleNamesaddStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, unregisterRpcclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getTag, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, updateEnabledStatepublic MapWidget getWidget()
getWidget in interface com.vaadin.client.HasWidgetgetWidget in class com.vaadin.client.ui.AbstractComponentConnectorpublic LeafletMapState getState()
getState in interface com.vaadin.client.ComponentConnectorgetState in interface com.vaadin.client.ServerConnectorgetState in class com.vaadin.client.ui.AbstractComponentConnectorprotected com.google.gwt.user.client.ui.Widget createWidget()
createWidget in class com.vaadin.client.ui.AbstractComponentConnectorprotected void init()
init in class com.vaadin.client.ui.AbstractConnectorpublic void onUnregister()
onUnregister in interface com.vaadin.client.ServerConnectoronUnregister in class com.vaadin.client.ui.AbstractComponentConnectorpublic void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent)
onStateChanged in interface com.vaadin.client.communication.StateChangeEvent.StateChangeHandleronStateChanged in class com.vaadin.client.ui.AbstractComponentConnectorprotected Map createMap(com.google.gwt.dom.client.Element mapElement, MapOptions options)
protected void reportViewPortToServer()
public Map getMap()
public void updateCaption(com.vaadin.client.ComponentConnector connector)
updateCaption in interface com.vaadin.client.HasComponentsConnectorpublic void onConnectorHierarchyChange(com.vaadin.client.ConnectorHierarchyChangeEvent connectorHierarchyChangeEvent)
onConnectorHierarchyChange in interface com.vaadin.client.ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandlerpublic void onElementResize(com.vaadin.client.ui.layout.ElementResizeEvent e)
onElementResize in interface com.vaadin.client.ui.layout.ElementResizeListenerpublic void setLayersControl(Layers l)
public static LatLngBounds toLeafletBounds(Bounds b)
public Point getMapPixelPosition()