Package eu.webtoolkit.jwt
Class WLeafletMap.Tooltip
java.lang.Object
eu.webtoolkit.jwt.WObject
eu.webtoolkit.jwt.WLeafletMap.AbstractMapItem
eu.webtoolkit.jwt.WLeafletMap.AbstractOverlayItem
eu.webtoolkit.jwt.WLeafletMap.Tooltip
- Enclosing class:
- WLeafletMap
A
WLeafletMap.Tooltip that can be added to the WLeafletMap.
Tooltips are interactive windows that can be opened on the map, typically linked to a map
location or a WLeafletMap.Marker.
Note: Multiple tooltips can be added to a map (using coordinates), but only one
tooltip 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
ConstructorsConstructorDescriptionTooltip()Create a tooltip with the given coordinates.Create a tooltip with the given coordinates.Tooltip(WLeafletMap.Coordinate pos, WWidget content) Create a tooltip with the given content and coordinates.Tooltip(WLeafletMap.Coordinate pos, CharSequence content) Create a tooltip with the given content and coordinates.Create a tooltip with the given content.Tooltip(CharSequence content) Create a tooltip 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
-
Tooltip
Create a tooltip with the given coordinates. -
Tooltip
public Tooltip()Create a tooltip with the given coordinates. -
Tooltip
Create a tooltip with the given content. -
Tooltip
Create a tooltip with the given content.This is a shortcut for creating a tooltip with a
WTextwidget as content. -
Tooltip
Create a tooltip with the given content and coordinates. -
Tooltip
Create a tooltip with the given content and coordinates.This is a shortcut for creating a tooltip 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
-