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
    • messages

      protected Messages messages
  • Constructor Details

    • GeoObjectWrapper

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

    • processGeometryContextMenu

      protected ContextMenu processGeometryContextMenu(ContextMenuInvocationContext context)
      A function that modifies context menu by adding geometry-specific menu items.
    • 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)
    • setMessages

      public void setMessages(Messages messages)
    • select

      protected abstract void select()
    • deselect

      protected abstract void deselect()
    • getLeafletComponent

      public abstract LeafletLayer 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()
    • isActive

      protected boolean isActive()
    • 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.