public abstract class GeoObjectWrapper<T>
extends java.lang.Object
Instances of GeoObjectWrapper
exist only for geo-objects with non-null geometry.
Wrappers are updated after layer refresh.
Modifier and Type | Field and Description |
---|---|
protected com.vaadin.shared.Registration |
clickListenerRegistration |
protected io.jmix.ui.widget.addon.contextmenu.ContextMenu |
contextMenu |
protected com.vaadin.shared.Registration |
contextMenuListenerRegistration |
protected T |
entity |
protected VectorLayerHolder<T> |
layerHolder |
protected java.lang.String |
property |
Modifier | Constructor and Description |
---|---|
protected |
GeoObjectWrapper(T entity,
java.lang.String property) |
Modifier and Type | Method and Description |
---|---|
abstract void |
closePopup()
Closes popup of the geo-object.
|
abstract void |
closeTooltip()
Closes tooltip of the geo-object.
|
protected abstract void |
deselect() |
T |
getEntity() |
abstract GeoType |
getGeoType() |
abstract AbstractLeafletLayer |
getLeafletComponent() |
protected boolean |
isEditable() |
abstract void |
openPopup()
Opens popup of the geo-object if popup content is specified for the geo-object.
|
abstract void |
openTooltip()
Opens tooltip of the geo-object if tooltip content is specified for the geo-object.
|
protected abstract void |
select() |
protected void |
setEntity(T entity) |
protected abstract void |
setGeometry(org.locationtech.jts.geom.Geometry geometry) |
abstract GeoObjectWrapper<T> |
setPopupContent(java.lang.String popupContent) |
abstract GeoObjectWrapper<T> |
setPopupOptions(PopupWindowOptions options) |
abstract GeoObjectWrapper<T> |
setStyle(GeometryStyle style) |
abstract GeoObjectWrapper<T> |
setTooltipContent(java.lang.String tooltipContent) |
abstract GeoObjectWrapper<T> |
setTooltipOptions(TooltipOptions options) |
protected T entity
protected java.lang.String property
protected VectorLayerHolder<T> layerHolder
protected com.vaadin.shared.Registration clickListenerRegistration
protected com.vaadin.shared.Registration contextMenuListenerRegistration
protected io.jmix.ui.widget.addon.contextmenu.ContextMenu contextMenu
protected GeoObjectWrapper(T entity, java.lang.String property)
public abstract GeoObjectWrapper<T> setStyle(GeometryStyle style)
public abstract GeoObjectWrapper<T> setPopupContent(java.lang.String popupContent)
public abstract GeoObjectWrapper<T> setPopupOptions(PopupWindowOptions options)
public abstract GeoObjectWrapper<T> setTooltipContent(java.lang.String tooltipContent)
public abstract GeoObjectWrapper<T> setTooltipOptions(TooltipOptions options)
protected abstract void select()
protected abstract void deselect()
public abstract AbstractLeafletLayer getLeafletComponent()
protected abstract void setGeometry(org.locationtech.jts.geom.Geometry geometry)
protected void setEntity(T entity)
public T getEntity()
protected boolean isEditable()
public abstract GeoType getGeoType()
public abstract void openPopup()
public abstract void openTooltip()
public abstract void closePopup()
public abstract void closeTooltip()