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
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.shared.Registrationprotected com.vaadin.shared.Registrationprotected Tprotected VectorLayerHolder<T>protected Messagesprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidCloses popup of the geo-object.abstract voidCloses tooltip of the geo-object.protected abstract voiddeselect()abstract GeoTypeabstract LeafletLayerprotected booleanisActive()protected booleanabstract voidOpens popup of the geo-object if popup content is specified for the geo-object.abstract voidOpens tooltip of the geo-object if tooltip content is specified for the geo-object.protected ContextMenuA function that modifies context menu by adding geometry-specific menu items.protected abstract voidselect()protected voidprotected abstract voidsetGeometry(org.locationtech.jts.geom.Geometry geometry) voidsetMessages(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.
-