|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.AbstractComponent org.zkoss.zk.ui.HtmlBasedComponent org.zkoss.zul.impl.XulElement org.zkoss.gmaps.Ginfo
public class Ginfo
The popup info window of the Gooogle Maps. You can specify the content in pure text or HTML.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl |
Field Summary | |
---|---|
protected double |
_lat
|
protected double |
_lng
|
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
Fields inherited from interface org.zkoss.zk.ui.Component |
---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
Constructor Summary | |
---|---|
Ginfo()
|
|
Ginfo(java.lang.String content)
|
|
Ginfo(java.lang.String content,
double lat,
double lng)
|
Method Summary | |
---|---|
java.lang.String |
getContent()
Returns the content of the info window. |
double |
getLat()
get the latitude of the anchor point. |
double |
getLng()
get the longitude of the anchor point. |
java.lang.String |
getOuterAttrs()
Returns the HTML attributes for this tag. |
boolean |
isChildable()
Default: not childable. |
boolean |
isOpen()
whether this Ginfo is the currently opened info window of its parent Gmaps . |
void |
setAnchor(double lat,
double lng)
set the anchor point of the info window. |
void |
setContent(java.lang.String content)
Sets the contents (can be pure text or HTML). |
void |
setLat(double lat)
set the latitude of the anchor point. |
void |
setLng(double lng)
set the longitude of the anchor point. |
void |
setOpen(boolean b)
Open this Info |
void |
setParent(org.zkoss.zk.ui.Component parent)
|
Methods inherited from class org.zkoss.zul.impl.XulElement |
---|
getAction, getActionAttrs, getAllOnClickAttrs, getContext, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip |
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
focus, getDraggable, getDroppable, getHeight, getLeft, getRealSclass, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, newExtraCtrl, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
---|
addAnnotation, addAnnotation, addEventHandler, addEventListener, addForward, addForward, addMoved, addSharedAnnotationMap, addSharedEventHandlerMap, appendAsapAttr, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getMoldURI, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isAsapRequired, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onPageAttached, onPageDetached, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setPageBefore, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, smartUpdateDeferred, toString, unsetVariable |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.zkoss.zk.ui.Component |
---|
addEventListener, addForward, addForward, appendChild, applyProperties, clone, containsVariable, detach, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getFellow, getFellowIfAny, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onPageAttached, onPageDetached, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, setAttribute, setAttribute, setId, setMold, setPage, setPageBefore, setVariable, setVisible, smartUpdate, smartUpdateDeferred, unsetVariable |
Field Detail |
---|
protected double _lat
protected double _lng
Constructor Detail |
---|
public Ginfo()
public Ginfo(java.lang.String content)
public Ginfo(java.lang.String content, double lat, double lng)
Method Detail |
---|
public java.lang.String getContent()
Default: empty.
public void setContent(java.lang.String content)
public void setAnchor(double lat, double lng)
lat
- latitude of the anchor point in Google Maps.lng
- longitude of the anchor point in Google Maps.public void setLat(double lat)
public double getLat()
public void setLng(double lng)
public double getLng()
public void setOpen(boolean b)
public boolean isOpen()
Gmaps
.
public java.lang.String getOuterAttrs()
Used only for component development, not for application developers.
getOuterAttrs
in class org.zkoss.zul.impl.XulElement
public boolean isChildable()
isChildable
in interface org.zkoss.zk.ui.Component
isChildable
in class org.zkoss.zk.ui.AbstractComponent
public void setParent(org.zkoss.zk.ui.Component parent)
setParent
in interface org.zkoss.zk.ui.Component
setParent
in class org.zkoss.zk.ui.AbstractComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |