Class GeoObjectWrapper<T>
java.lang.Object
io.jmix.mapsui.component.leaflet.translators.GeoObjectWrapper<T>
Wrapper containing the underlying leaflet component corresponding to the geo-object.
Instances of GeoObjectWrapper
exist only for geo-objects with non-null geometry.
Wrappers are updated after layer refresh.
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.vaadin.shared.Registration
protected com.vaadin.shared.Registration
protected T
protected VectorLayerHolder<T>
protected Messages
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Closes popup of the geo-object.abstract void
Closes tooltip of the geo-object.protected abstract void
deselect()
abstract GeoType
abstract LeafletLayer
protected boolean
isActive()
protected boolean
abstract void
Opens popup of the geo-object if popup content is specified for the geo-object.abstract void
Opens tooltip of the geo-object if tooltip content is specified for the geo-object.protected ContextMenu
A function that modifies context menu by adding geometry-specific menu items.protected abstract void
select()
protected void
protected abstract void
setGeometry
(org.locationtech.jts.geom.Geometry geometry) void
setMessages
(Messages messages) abstract GeoObjectWrapper<T>
setPopupContent
(String popupContent) abstract GeoObjectWrapper<T>
setPopupOptions
(PopupWindowOptions options) abstract GeoObjectWrapper<T>
setStyle
(GeometryStyle style) abstract GeoObjectWrapper<T>
setTooltipContent
(String tooltipContent) abstract GeoObjectWrapper<T>
setTooltipOptions
(TooltipOptions options)
-
Field Details
-
entity
-
property
-
layerHolder
-
clickListenerRegistration
protected com.vaadin.shared.Registration clickListenerRegistration -
contextMenuListenerRegistration
protected com.vaadin.shared.Registration contextMenuListenerRegistration -
messages
-
-
Constructor Details
-
GeoObjectWrapper
-
-
Method Details
-
processGeometryContextMenu
A function that modifies context menu by adding geometry-specific menu items. -
setStyle
-
setPopupContent
-
setPopupOptions
-
setTooltipContent
-
setTooltipOptions
-
setMessages
-
select
protected abstract void select() -
deselect
protected abstract void deselect() -
getLeafletComponent
-
setGeometry
protected abstract void setGeometry(org.locationtech.jts.geom.Geometry geometry) -
setEntity
-
getEntity
-
isEditable
protected boolean isEditable() -
isActive
protected boolean isActive() -
getGeoType
-
openPopup
public abstract void openPopup()Opens popup of the geo-object if popup content is specified for the geo-object. -
openTooltip
public abstract void openTooltip()Opens tooltip of the geo-object if tooltip content is specified for the geo-object. -
closePopup
public abstract void closePopup()Closes popup of the geo-object. -
closeTooltip
public abstract void closeTooltip()Closes tooltip of the geo-object.
-