net.sf.tacos.components.maps
Class GMap

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by net.sf.tacos.components.maps.GMap
All Implemented Interfaces:
Locatable, LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IRender, org.apache.tapestry.ITemplateComponent

public abstract class GMap
extends org.apache.tapestry.BaseComponent

Author:
Andreas Andreou

Constructor Summary
GMap()
           
 
Method Summary
protected  void cleanupAfterRender(org.apache.tapestry.IRequestCycle cycle)
          
 void finishLoad(org.apache.tapestry.IRequestCycle cycle, org.apache.tapestry.engine.IPageLoader loader, org.apache.tapestry.spec.IComponentSpecification spec)
          Drop the licenses into a map just once.
static GMap get(org.apache.tapestry.IRequestCycle cycle)
          Get the current GMap.
abstract  double getCoordX()
          x coordinate of the center
abstract  double getCoordY()
          y coordinate of the center
abstract  int getHeight()
          The height of the control
abstract  String getIdParameter()
          The html id
abstract  String getKey()
          The api key, provided by google
abstract  List getKeys()
          The api keys, contributed to tacos.components.MapLicences
abstract  org.apache.tapestry.IScript getScript()
          Injected script
abstract  String getServerName()
          Injected server name
abstract  Integer getServerPort()
          Injected server port
abstract  boolean getShowScale()
          Whether or not to show the scale control
abstract  boolean getShowType()
          Whether or not to show the type control
abstract  boolean getShowZoom()
          Whether or not to show the zoom control
abstract  String getType()
          Map type: street, satellite, hybrid
abstract  int getVersion()
          The api version
abstract  int getWidth()
          The width of the control
abstract  int getZoom()
          The zoom level
protected  void prepareForRender(org.apache.tapestry.IRequestCycle cycle)
          
protected  void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
          
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, enterActiveState, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

GMap

public GMap()
Method Detail

getIdParameter

public abstract String getIdParameter()
The html id


getWidth

public abstract int getWidth()
The width of the control


getHeight

public abstract int getHeight()
The height of the control


getVersion

public abstract int getVersion()
The api version


getZoom

public abstract int getZoom()
The zoom level


getCoordX

public abstract double getCoordX()
x coordinate of the center


getCoordY

public abstract double getCoordY()
y coordinate of the center


getType

public abstract String getType()
Map type: street, satellite, hybrid


getKeys

public abstract List getKeys()
The api keys, contributed to tacos.components.MapLicences


getKey

public abstract String getKey()
The api key, provided by google


getShowZoom

public abstract boolean getShowZoom()
Whether or not to show the zoom control


getShowType

public abstract boolean getShowType()
Whether or not to show the type control


getShowScale

public abstract boolean getShowScale()
Whether or not to show the scale control


getScript

public abstract org.apache.tapestry.IScript getScript()
Injected script


getServerName

public abstract String getServerName()
Injected server name


getServerPort

public abstract Integer getServerPort()
Injected server port


get

public static GMap get(org.apache.tapestry.IRequestCycle cycle)
Get the current GMap.

Parameters:
cycle -
Returns:

prepareForRender

protected void prepareForRender(org.apache.tapestry.IRequestCycle cycle)

Overrides:
prepareForRender in class org.apache.tapestry.AbstractComponent

renderComponent

protected void renderComponent(org.apache.tapestry.IMarkupWriter writer,
                               org.apache.tapestry.IRequestCycle cycle)

Overrides:
renderComponent in class org.apache.tapestry.BaseComponent

finishLoad

public void finishLoad(org.apache.tapestry.IRequestCycle cycle,
                       org.apache.tapestry.engine.IPageLoader loader,
                       org.apache.tapestry.spec.IComponentSpecification spec)
Drop the licenses into a map just once.

Specified by:
finishLoad in interface org.apache.tapestry.IComponent
Overrides:
finishLoad in class org.apache.tapestry.BaseComponent

cleanupAfterRender

protected void cleanupAfterRender(org.apache.tapestry.IRequestCycle cycle)

Overrides:
cleanupAfterRender in class org.apache.tapestry.AbstractComponent