org.zkoss.gmaps
Class Ginfo

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.zk.ui.HtmlBasedComponent
          extended by org.zkoss.zul.impl.XulElement
              extended by org.zkoss.gmaps.Ginfo
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Mapitem, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.sys.ComponentCtrl
Direct Known Subclasses:
Gmarker

public class Ginfo
extends org.zkoss.zul.impl.XulElement
implements Mapitem

The popup info window of the Gooogle Maps. You can specify the content in pure text or HTML.

Author:
henrichen
See Also:
Serialized Form

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

_lat

protected double _lat

_lng

protected double _lng
Constructor Detail

Ginfo

public Ginfo()

Ginfo

public Ginfo(java.lang.String content)

Ginfo

public Ginfo(java.lang.String content,
             double lat,
             double lng)
Method Detail

getContent

public java.lang.String getContent()
Returns the content of the info window.

Default: empty.


setContent

public void setContent(java.lang.String content)
Sets the contents (can be pure text or HTML).


setAnchor

public void setAnchor(double lat,
                      double lng)
set the anchor point of the info window.

Parameters:
lat - latitude of the anchor point in Google Maps.
lng - longitude of the anchor point in Google Maps.

setLat

public void setLat(double lat)
set the latitude of the anchor point.


getLat

public double getLat()
get the latitude of the anchor point.


setLng

public void setLng(double lng)
set the longitude of the anchor point.


getLng

public double getLng()
get the longitude of the anchor point.


setOpen

public void setOpen(boolean b)
Open this Info


isOpen

public boolean isOpen()
whether this Ginfo is the currently opened info window of its parent Gmaps.


getOuterAttrs

public java.lang.String getOuterAttrs()
Returns the HTML attributes for this tag.

Used only for component development, not for application developers.

Overrides:
getOuterAttrs in class org.zkoss.zul.impl.XulElement

isChildable

public boolean isChildable()
Default: not childable.

Specified by:
isChildable in interface org.zkoss.zk.ui.Component
Overrides:
isChildable in class org.zkoss.zk.ui.AbstractComponent

setParent

public void setParent(org.zkoss.zk.ui.Component parent)
Specified by:
setParent in interface org.zkoss.zk.ui.Component
Overrides:
setParent in class org.zkoss.zk.ui.AbstractComponent


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.