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
A popup that can be added to the
WLeafletMap.
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
ConstructorsConstructorDescriptionPopup()Create a popup with the given coordinates.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, CharSequence content) Create a popup with the given content and coordinates.Create a popup with the given content.Popup(CharSequence content) Create a popup with the given content. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateItemJS(StringBuilder ss, 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, toggleMethods inherited from class eu.webtoolkit.jwt.WLeafletMap.AbstractMapItem
clicked, doubleClicked, getMap, getPosition, mouseWentDown, mouseWentOut, mouseWentOver, mouseWentUp, move, needsUpdate, unrender, updateMethods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, setFormData, setObjectName, tr
-
Constructor Details
-
Popup
Create a popup with the given coordinates. -
Popup
public Popup()Create a popup with the given coordinates. -
Popup
Create a popup with the given content. -
Popup
Create a popup with the given content.This is a shortcut for creating a popup with a
WTextwidget as content. -
Popup
Create a popup with the given content and coordinates. -
Popup
Create a popup with the given content and coordinates.This is a shortcut for creating a popup with a
WTextwidget as content.
-
-
Method Details
-
createItemJS
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
-