Class AbstractLeafletLayerConnector<T>
java.lang.Object
com.vaadin.client.ui.AbstractConnector
com.vaadin.client.ui.AbstractComponentConnector
io.jmix.mapsui.widget.leaflet.client.AbstractLeafletLayerConnector<T>
- All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler
,com.vaadin.client.communication.StateChangeEvent.StateChangeHandler
,com.vaadin.client.ComponentConnector
,com.vaadin.client.HasWidget
,com.vaadin.client.ServerConnector
,com.vaadin.client.ui.HasContextHelpConnector
,com.vaadin.client.ui.HasErrorIndicator
,com.vaadin.shared.Connector
,Serializable
- Direct Known Subclasses:
AbstractLeafletVectorConnector
,LeafletGridLayerConnector
,LeafletImageOverlayConnector
,LeafletLayerGroupConnector
,LeafletMarkerConnector
,LHeatLayerConnector
public abstract class AbstractLeafletLayerConnector<T>
extends com.vaadin.client.ui.AbstractComponentConnector
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected ContextMenuServerRpc
protected MouseOutServerRpc
protected MouseOverServerRpc
protected ClickServerRpc
Fields inherited from class com.vaadin.client.ui.AbstractComponentConnector
SIGNIFICANT_MOVE_THRESHOLD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToParent
(Layer layer) protected abstract T
protected void
abstract Layer
getLayer()
getMap()
com.vaadin.client.HasComponentsConnector
getState()
com.google.gwt.user.client.ui.Label
protected void
void
onStateChanged
(com.vaadin.client.communication.StateChangeEvent stateChangeEvent) void
protected abstract void
update()
protected void
protected void
protected void
Methods inherited from class com.vaadin.client.ui.AbstractComponentConnector
contextHelpIconClick, contextHelpIconClick, createWidget, delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, getTooltipInfo, hasContextHelpIconListeners, hasTooltip, isContextHelpIconEnabled, isContextHelpTooltipEnabled, isErrorIndicatorVisible, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, onUnregister, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateEnabledState, updateWidgetSize
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, init, 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, getRpcImplementations, getTag, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag
-
Field Details
-
rpc
-
mouseOverRpc
-
mouseOutRpc
-
contextMenuRpc
-
-
Constructor Details
-
AbstractLeafletLayerConnector
public AbstractLeafletLayerConnector()
-
-
Method Details
-
getWidget
public com.google.gwt.user.client.ui.Label getWidget()- Specified by:
getWidget
in interfacecom.vaadin.client.HasWidget
- Overrides:
getWidget
in classcom.vaadin.client.ui.AbstractComponentConnector
-
updateWidgetStyleNames
protected void updateWidgetStyleNames()- Overrides:
updateWidgetStyleNames
in classcom.vaadin.client.ui.AbstractComponentConnector
-
updateComponentSize
protected void updateComponentSize()- Overrides:
updateComponentSize
in classcom.vaadin.client.ui.AbstractComponentConnector
-
getState
- Specified by:
getState
in interfacecom.vaadin.client.ComponentConnector
- Specified by:
getState
in interfacecom.vaadin.client.ServerConnector
- Overrides:
getState
in classcom.vaadin.client.ui.AbstractComponentConnector
-
addToParent
-
removeLayerFromParent
public void removeLayerFromParent() -
getMap
- Returns:
- the map from the root of the hierarchy
-
getLeafletMapConnector
-
getMapPixelPosition
- Returns:
- the pixel position of the map
-
getParent
public com.vaadin.client.HasComponentsConnector getParent()- Specified by:
getParent
in interfacecom.vaadin.shared.Connector
- Specified by:
getParent
in interfacecom.vaadin.client.ServerConnector
- Overrides:
getParent
in classcom.vaadin.client.ui.AbstractConnector
-
onStateChanged
public void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent) - Specified by:
onStateChanged
in interfacecom.vaadin.client.communication.StateChangeEvent.StateChangeHandler
- Overrides:
onStateChanged
in classcom.vaadin.client.ui.AbstractComponentConnector
-
markDirty
protected void markDirty() -
deferUpdate
protected void deferUpdate() -
updateIfDirty
protected void updateIfDirty() -
createOptions
-
update
protected abstract void update() -
getLayer
-