org.gwtopenmaps.openlayers.client.popup
Class FramedCloud
java.lang.Object
org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
org.gwtopenmaps.openlayers.client.popup.Popup
org.gwtopenmaps.openlayers.client.popup.FramedCloud
public class FramedCloud
- extends Popup
- Author:
- Edwin Commandeur - Atlis Information Systems, Marten Karlberg, Digpro AB
Constructor Summary |
protected |
FramedCloud(JSObject element)
|
|
FramedCloud(String id,
LonLat lonlat,
Size size,
String html,
OpenLayersObjectWrapper anchor,
boolean closeBox)
Use addCloseListener to respond to popup close event. |
|
FramedCloud(String id,
LonLat lonlat,
Size size,
String html,
OpenLayersObjectWrapper anchor,
boolean closeBox,
Popup.CloseListener closeBoxCallback)
Constructor also taking a CloseListener callback as suggested by the original OpenLayers
JavaScript constructor. |
Methods inherited from class org.gwtopenmaps.openlayers.client.popup.Popup |
addCloseListener, getAutoSize, getBackgroundColor, getBorder, getOpacity, getPanMapIfOutOfView, hide, narrowToOpenLayersPopup, setAutoSize, setBackgroundColor, setBorder, setContentHTML, setLonLat, setOpacity, setPanMapIfOutOfView, show, updatePosition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FramedCloud
protected FramedCloud(JSObject element)
FramedCloud
public FramedCloud(String id,
LonLat lonlat,
Size size,
String html,
OpenLayersObjectWrapper anchor,
boolean closeBox,
Popup.CloseListener closeBoxCallback)
- Constructor also taking a CloseListener callback as suggested by the original OpenLayers
JavaScript constructor. Because adding the CloseListener using the Popup.addCloseListener
results in adding a second closeBox on top of the original closeBox. That sollution is
ugly but works for the Popup class as the two buttons get the same position and click
events fall through to the underlaying button. But the style of FramedCloud popup is more
complex and the closeBoxes get different positions and the second get no z-index value
set which makes it hidden behind the popup surface.
Added by Digpro.
FramedCloud
public FramedCloud(String id,
LonLat lonlat,
Size size,
String html,
OpenLayersObjectWrapper anchor,
boolean closeBox)
- Use addCloseListener to respond to popup close event. (Beware! This does not work as
expected. Instead pass the CloseListener in the constructor for proper binding. /Digpro)
- Parameters:
anchor
- - ...
For explanation of other parameters see Popup
.
Copyright © 2011 sourceforge. All Rights Reserved.