Class GeoObjectWrapper<T>

java.lang.Object
io.jmix.mapsui.component.leaflet.translators.GeoObjectWrapper<T>

public abstract class GeoObjectWrapper<T> extends Object
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 Details

    • entity

      protected T entity
    • property

      protected String property
    • layerHolder

      protected VectorLayerHolder<T> layerHolder
    • clickListenerRegistration

      protected com.vaadin.shared.Registration clickListenerRegistration
    • contextMenuListenerRegistration

      protected com.vaadin.shared.Registration contextMenuListenerRegistration
    • contextMenu

      protected ContextMenu contextMenu
  • Constructor Details

    • GeoObjectWrapper

      protected GeoObjectWrapper(T entity, String property)
  • Method Details

    • setStyle

      public abstract GeoObjectWrapper<T> setStyle(GeometryStyle style)
    • setPopupContent

      public abstract GeoObjectWrapper<T> setPopupContent(String popupContent)
    • setPopupOptions

      public abstract GeoObjectWrapper<T> setPopupOptions(PopupWindowOptions options)
    • setTooltipContent

      public abstract GeoObjectWrapper<T> setTooltipContent(String tooltipContent)
    • setTooltipOptions

      public abstract GeoObjectWrapper<T> setTooltipOptions(TooltipOptions options)
    • select

      protected abstract void select()
    • deselect

      protected abstract void deselect()
    • getLeafletComponent

      public abstract AbstractLeafletLayer getLeafletComponent()
    • setGeometry

      protected abstract void setGeometry(org.locationtech.jts.geom.Geometry geometry)
    • setEntity

      protected void setEntity(T entity)
    • getEntity

      public T getEntity()
    • isEditable

      protected boolean isEditable()
    • getGeoType

      public abstract GeoType 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.