Package eu.webtoolkit.jwt
Class WLeafletMap.Popup
- java.lang.Object
-
- eu.webtoolkit.jwt.WObject
-
- eu.webtoolkit.jwt.WLeafletMap.AbstractMapItem
-
- eu.webtoolkit.jwt.WLeafletMap.AbstractOverlayItem
-
- eu.webtoolkit.jwt.WLeafletMap.Popup
-
- Enclosing class:
- WLeafletMap
public static class WLeafletMap.Popup extends WLeafletMap.AbstractOverlayItem
A popup that can be added to theWLeafletMap.Popups are interactive windows that can be opened on the map, typically linked to a map location or a
WLeafletMap.Marker.Note: Multiple popups can be added to a map (using coordinates), but only one popup at the time can be linked to each
WLeafletMap.Marker.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
-
Constructor Summary
Constructors Constructor Description Popup()Create a popup with the given coordinates.Popup(WLeafletMap.Coordinate pos)Create a popup with the given coordinates.Popup(WLeafletMap.Coordinate pos, WWidget content)Create a popup with the given content and coordinates.Popup(WLeafletMap.Coordinate pos, java.lang.CharSequence content)Create a popup with the given content and coordinates.Popup(WWidget content)Create a popup with the given content.Popup(java.lang.CharSequence content)Create a popup with the given content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateItemJS(java.lang.StringBuilder ss, java.lang.StringBuilder postJS, long id)Writes the JS code to create this item to the stream.-
Methods inherited from class eu.webtoolkit.jwt.WLeafletMap.AbstractOverlayItem
bringToBack, bringToFront, close, closed, getContent, isOpen, open, opened, setContent, setContent, setMap, setOptions, toggle
-
Methods inherited from class eu.webtoolkit.jwt.WLeafletMap.AbstractMapItem
clicked, doubleClicked, getMap, getPosition, mouseWentDown, mouseWentOut, mouseWentOver, mouseWentUp, move, needsUpdate, unrender, update
-
Methods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, setFormData, setObjectName, tr
-
-
-
-
Constructor Detail
-
Popup
public Popup(WLeafletMap.Coordinate pos)
Create a popup with the given coordinates.
-
Popup
public Popup()
Create a popup with the given coordinates.
-
Popup
public Popup(WWidget content)
Create a popup with the given content.
-
Popup
public Popup(java.lang.CharSequence content)
Create a popup with the given content.This is a shortcut for creating a popup with a
WTextwidget as content.
-
Popup
public Popup(WLeafletMap.Coordinate pos, WWidget content)
Create a popup with the given content and coordinates.
-
Popup
public Popup(WLeafletMap.Coordinate pos, java.lang.CharSequence content)
Create a popup with the given content and coordinates.This is a shortcut for creating a popup with a
WTextwidget as content.
-
-
Method Detail
-
createItemJS
protected void createItemJS(java.lang.StringBuilder ss, java.lang.StringBuilder postJS, long id)Description copied from class:WLeafletMap.AbstractMapItemWrites the JS code to create this item to the stream.This method should write in
ssthe JS code that creates the item. ThepostJSstream can be used to write JS code that should be executed after the item has been created.- Specified by:
createItemJSin classWLeafletMap.AbstractMapItem
-
-