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
public static class WLeafletMap.Tooltip extends WLeafletMap.AbstractOverlayItem
AWLeafletMap.Tooltipthat can be added to theWLeafletMap.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
Constructors Constructor Description Tooltip()Create a tooltip with the given coordinates.Tooltip(WLeafletMap.Coordinate pos)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, java.lang.CharSequence content)Create a tooltip with the given content and coordinates.Tooltip(WWidget content)Create a tooltip with the given content.Tooltip(java.lang.CharSequence content)Create a tooltip 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
-
Tooltip
public Tooltip(WLeafletMap.Coordinate pos)
Create a tooltip with the given coordinates.
-
Tooltip
public Tooltip()
Create a tooltip with the given coordinates.
-
Tooltip
public Tooltip(WWidget content)
Create a tooltip with the given content.
-
Tooltip
public Tooltip(java.lang.CharSequence content)
Create a tooltip with the given content.This is a shortcut for creating a tooltip with a
WTextwidget as content.
-
Tooltip
public Tooltip(WLeafletMap.Coordinate pos, WWidget content)
Create a tooltip with the given content and coordinates.
-
Tooltip
public Tooltip(WLeafletMap.Coordinate pos, java.lang.CharSequence content)
Create a tooltip with the given content and coordinates.This is a shortcut for creating a tooltip 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
-
-