|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gwtopenmaps.openlayers.client.util.JSObjectWrapper org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper org.gwtopenmaps.openlayers.client.popup.Popup
public class Popup
Nested Class Summary | |
---|---|
static interface |
Popup.CloseListener
|
Constructor Summary | |
---|---|
protected |
Popup(JSObject element)
|
|
Popup(String id,
LonLat lonlat,
Size size,
String html,
boolean closeBox)
Use addCloseListener to respond to popup close event. |
|
Popup(String id,
LonLat lonlat,
Size size,
String html,
boolean closeBox,
Popup.CloseListener closeBoxCallback)
|
Method Summary | |
---|---|
void |
addCloseListener(Popup.CloseListener callback)
Deprecated. add a close listener via the constructor instead this method uses a private method in OL and will not work as expected |
boolean |
getAutoSize()
Get the popup autoSize state |
String |
getBackgroundColor()
Get the popup backgroundColor |
String |
getBorder()
Get the border style as set by setBorder |
double |
getOpacity()
Get the popup opacity |
boolean |
getPanMapIfOutOfView()
Get the popup panMapIfOutOfView state |
void |
hide()
Method: hide Makes the popup invisible. |
static Popup |
narrowToOpenLayersPopup(JSObject element)
|
void |
setAutoSize(boolean autoSize)
autosize the popup |
void |
setBackgroundColor(String color)
Set the popup backgroundColor. |
void |
setBorder(String border)
Set the border style |
void |
setContentHTML(String contentHTML)
|
void |
setLonLat(LonLat lt)
|
void |
setOpacity(double opacity)
Set the popup opacity |
void |
setPanMapIfOutOfView(boolean panMapIfOutOfView)
When drawn, pan map such that the entire popup is visible in the current viewport (if necessary). |
void |
show()
Method: show Makes the popup visible. |
void |
updatePosition()
Method: updatePosition if the popup has a lonlat and its map members set, then have it move itself to its proper position |
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 |
---|
protected Popup(JSObject element)
public Popup(String id, LonLat lonlat, Size size, String html, boolean closeBox, Popup.CloseListener closeBoxCallback)
public Popup(String id, LonLat lonlat, Size size, String html, boolean closeBox)
id
- - String identifier for Popup. Used by ..?..lonlat
- - LonLat
where Popup should appearsize
- - Size
that provides height and width for Popuphtml
- - String with html content to appear in PopupcloseBox
- - Set to true to get close button in upper right corner of PopupMethod Detail |
---|
public static Popup narrowToOpenLayersPopup(JSObject element)
public void addCloseListener(Popup.CloseListener callback)
public void setAutoSize(boolean autoSize)
autoSize
- - booleanpublic boolean getAutoSize()
public void setPanMapIfOutOfView(boolean panMapIfOutOfView)
panMapIfOutOfView
- - booleanpublic boolean getPanMapIfOutOfView()
public void setBackgroundColor(String color)
color
- - Stringpublic String getBackgroundColor()
public void setOpacity(double opacity)
opacity
- - doublepublic double getOpacity()
public void setBorder(String border)
border
- - Stringpublic String getBorder()
public void setContentHTML(String contentHTML)
public void setLonLat(LonLat lt)
public void show()
public void hide()
public void updatePosition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |