org.gwtopenmaps.openlayers.client.popup
Class FramedCloud

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
          extended by org.gwtopenmaps.openlayers.client.popup.Popup
              extended by org.gwtopenmaps.openlayers.client.popup.FramedCloud

public class FramedCloud
extends Popup

Author:
Edwin Commandeur - Atlis Information Systems, Marten Karlberg, Digpro AB

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gwtopenmaps.openlayers.client.popup.Popup
Popup.CloseListener
 
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.
 
Method Summary
 
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 org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
getClassName, getEvents, narrowToOpenLayersObjectWrapper
 
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
getJSObject, setJSObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.