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, setChildComponents
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
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getTag, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, updateEnabledState
public MapWidget getWidget()
getWidget
in interface com.vaadin.client.HasWidget
getWidget
in class com.vaadin.client.ui.AbstractComponentConnector
public LeafletMapState getState()
getState
in interface com.vaadin.client.ComponentConnector
getState
in interface com.vaadin.client.ServerConnector
getState
in class com.vaadin.client.ui.AbstractComponentConnector
protected com.google.gwt.user.client.ui.Widget createWidget()
createWidget
in class com.vaadin.client.ui.AbstractComponentConnector
protected void init()
init
in class com.vaadin.client.ui.AbstractConnector
public void onUnregister()
onUnregister
in interface com.vaadin.client.ServerConnector
onUnregister
in class com.vaadin.client.ui.AbstractComponentConnector
public void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent)
onStateChanged
in interface com.vaadin.client.communication.StateChangeEvent.StateChangeHandler
onStateChanged
in class com.vaadin.client.ui.AbstractComponentConnector
protected 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.HasComponentsConnector
public void onConnectorHierarchyChange(com.vaadin.client.ConnectorHierarchyChangeEvent connectorHierarchyChangeEvent)
onConnectorHierarchyChange
in interface com.vaadin.client.ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler
public void onElementResize(com.vaadin.client.ui.layout.ElementResizeEvent e)
onElementResize
in interface com.vaadin.client.ui.layout.ElementResizeListener
public void setLayersControl(Layers l)
public static LatLngBounds toLeafletBounds(Bounds b)
public Point getMapPixelPosition()