Author: SergeySmirnov
Date: 2007-07-16 21:14:22 -0400 (Mon, 16 Jul 2007)
New Revision: 1646
Added:
trunk/ui/virtualEarth/
trunk/ui/virtualEarth/.svnignore
trunk/ui/virtualEarth/pom.xml
trunk/ui/virtualEarth/src/
trunk/ui/virtualEarth/src/main/
trunk/ui/virtualEarth/src/main/config/
trunk/ui/virtualEarth/src/main/config/component/
trunk/ui/virtualEarth/src/main/config/component/virtualEarth.xml
trunk/ui/virtualEarth/src/main/java/
trunk/ui/virtualEarth/src/main/java/org/
trunk/ui/virtualEarth/src/main/java/org/richfaces/
trunk/ui/virtualEarth/src/main/java/org/richfaces/component/
trunk/ui/virtualEarth/src/main/resources/
trunk/ui/virtualEarth/src/main/resources/org/
trunk/ui/virtualEarth/src/main/resources/org/richfaces/
trunk/ui/virtualEarth/src/main/resources/org/richfaces/renderkit/
trunk/ui/virtualEarth/src/main/resources/org/richfaces/renderkit/html/
trunk/ui/virtualEarth/src/main/resources/org/richfaces/renderkit/html/css/
trunk/ui/virtualEarth/src/main/resources/org/richfaces/renderkit/html/css/virtualEarth.xcss
trunk/ui/virtualEarth/src/main/resources/org/richfaces/renderkit/html/script/
trunk/ui/virtualEarth/src/main/resources/org/richfaces/renderkit/html/script/virtualEarth.js
trunk/ui/virtualEarth/src/main/templates/
trunk/ui/virtualEarth/src/main/templates/virtualEarth.jspx
trunk/ui/virtualEarth/src/test/
trunk/ui/virtualEarth/src/test/java/
trunk/ui/virtualEarth/src/test/java/org/
trunk/ui/virtualEarth/src/test/java/org/richfaces/
trunk/ui/virtualEarth/src/test/java/org/richfaces/component/
trunk/ui/virtualEarth/target/
trunk/ui/virtualEarth/target/classes/
trunk/ui/virtualEarth/target/classes/META-INF/
trunk/ui/virtualEarth/target/classes/META-INF/virtualEarth.tld
trunk/ui/virtualEarth/target/classes/org/
trunk/ui/virtualEarth/target/classes/org/richfaces/
trunk/ui/virtualEarth/target/classes/org/richfaces/component/
trunk/ui/virtualEarth/target/classes/org/richfaces/component/html/
trunk/ui/virtualEarth/target/classes/org/richfaces/renderkit/
trunk/ui/virtualEarth/target/classes/org/richfaces/renderkit/html/
trunk/ui/virtualEarth/target/classes/org/richfaces/renderkit/html/VirtualEarthRenderer.class
trunk/ui/virtualEarth/target/classes/org/richfaces/renderkit/html/css/
trunk/ui/virtualEarth/target/classes/org/richfaces/renderkit/html/script/
trunk/ui/virtualEarth/target/classes/org/richfaces/taglib/
trunk/ui/virtualEarth/target/generated-component/
trunk/ui/virtualEarth/target/generated-component/java/
trunk/ui/virtualEarth/target/generated-component/java/org/
trunk/ui/virtualEarth/target/generated-component/java/org/richfaces/
trunk/ui/virtualEarth/target/generated-component/java/org/richfaces/component/
trunk/ui/virtualEarth/target/generated-component/java/org/richfaces/component/html/
trunk/ui/virtualEarth/target/generated-component/java/org/richfaces/component/html/HtmlVirtualEarth.java
trunk/ui/virtualEarth/target/generated-component/java/org/richfaces/renderkit/
trunk/ui/virtualEarth/target/generated-component/java/org/richfaces/renderkit/html/
trunk/ui/virtualEarth/target/generated-component/java/org/richfaces/taglib/
trunk/ui/virtualEarth/target/generated-component/resources/
trunk/ui/virtualEarth/target/generated-component/resources/META-INF/
trunk/ui/virtualEarth/target/generated-component/test/
trunk/ui/virtualEarth/target/generated-component/test/org/
trunk/ui/virtualEarth/target/generated-component/test/org/richfaces/
trunk/ui/virtualEarth/target/generated-component/test/org/richfaces/component/
trunk/ui/virtualEarth/target/generated-component/test/org/richfaces/component/html/
trunk/ui/virtualEarth/target/surefire-reports/
trunk/ui/virtualEarth/target/test-classes/
trunk/ui/virtualEarth/target/test-classes/org/
trunk/ui/virtualEarth/target/test-classes/org/richfaces/
trunk/ui/virtualEarth/target/test-classes/org/richfaces/component/
trunk/ui/virtualEarth/target/test-classes/org/richfaces/component/html/
Log:
Added: trunk/ui/virtualEarth/.svnignore
===================================================================
--- trunk/ui/virtualEarth/.svnignore (rev 0)
+++ trunk/ui/virtualEarth/.svnignore 2007-07-17 01:14:22 UTC (rev 1646)
@@ -0,0 +1,4 @@
+target
+.settings
+.classpath
+.project
Added: trunk/ui/virtualEarth/pom.xml
===================================================================
--- trunk/ui/virtualEarth/pom.xml (rev 0)
+++ trunk/ui/virtualEarth/pom.xml 2007-07-17 01:14:22 UTC (rev 1646)
@@ -0,0 +1,45 @@
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>ui</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>virtualEarth</artifactId>
+ <name>Virtual Earth</name>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>generate-test-sources</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>generate-tests</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces</prefix>
+ <taglib>
+ <shortName>virtualEarth</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ </dependencies>
+</project>
\ No newline at end of file
Added: trunk/ui/virtualEarth/src/main/config/component/virtualEarth.xml
===================================================================
--- trunk/ui/virtualEarth/src/main/config/component/virtualEarth.xml
(rev 0)
+++ trunk/ui/virtualEarth/src/main/config/component/virtualEarth.xml 2007-07-17 01:14:22
UTC (rev 1646)
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN"
"https://ajax4jsf.dev.java.net/nonav/dtds/component-config.dtd" >
+<components>
+ <component>
+ <name>org.richfaces.VirtualEarth</name>
+ <family>org.richfaces.VirtualEarth</family>
+ <classname>org.richfaces.component.html.HtmlVirtualEarth</classname>
+ <superclass>org.richfaces.component.UIVirtualEarth</superclass>
+ <description>
+ <![CDATA[
+ It presents the google map in JSF applications
+ ]]>
+ </description>
+ <test />
+ <renderer generate="true" override="true">
+ <name>org.richfaces.VirtualEarthRenderer</name>
+ <template>virtualEarth.jspx</template>
+ </renderer>
+ <tag>
+ <name>virtualEarth</name>
+ <classname>org.richfaces.taglib.VirtualEarthTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ &ui_component_attributes;
+ &html_events;
+ &html_style_attributes;
+
+ <property>
+ <name>onLoadMap</name>
+ <classname>java.lang.String</classname>
+ <description>
+ JavaScript code invoked just after the Virtual Earth object is initiated.
+ </description>
+ <defaultvalue>""</defaultvalue>
+ </property>
+ <property>
+ <name>var</name>
+ <classname>java.lang.String</classname>
+ <description>
+ The JavaScript variable that is used to access the Virtual Earth API. If you have
+ more than one Virtual Earth components on the same page, use individual
+ key for each of them. The default variable name is "map" (without quotes)
+ </description>
+ <defaultvalue>"map"</defaultvalue>
+ </property>
+ <property>
+ <name>lat</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Initial latitude coordinate in degrees, as a number between -90 and +90
+ </description>
+ <defaultvalue>"37.9721046"</defaultvalue>
+ </property>
+ <property>
+ <name>lng</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Initial longitude coordinate in degrees, as a number between -180 and +180
+ </description>
+ <defaultvalue>"-122.0424842834"</defaultvalue>
+ </property>
+ <property>
+ <name>zoom</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Initial zoom level as a number between 1 and 18. The default value is 17
+ </description>
+ <defaultvalue>"17"</defaultvalue>
+ </property>
+ <property>
+ <name>mapStyle</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Navigation control size. The possible values are Road,Aerial,Hybrid,Birdseye. The
default value is Road
+ </description>
+ <defaultvalue>"Road"</defaultvalue>
+ </property>
+ <property>
+ <name>dashboardSize</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Initial map type. The possible values are Normal,Small,Tiny. The default value is
Normal
+ </description>
+ <defaultvalue>"Normal"</defaultvalue>
+ </property>
+ </component>
+</components>
Added:
trunk/ui/virtualEarth/src/main/resources/org/richfaces/renderkit/html/css/virtualEarth.xcss
===================================================================
---
trunk/ui/virtualEarth/src/main/resources/org/richfaces/renderkit/html/css/virtualEarth.xcss
(rev 0)
+++
trunk/ui/virtualEarth/src/main/resources/org/richfaces/renderkit/html/css/virtualEarth.xcss 2007-07-17
01:14:22 UTC (rev 1646)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:template
xmlns:f='http:/jsf.exadel.com/template'
+
xmlns:u='http:/jsf.exadel.com/template/util'
+
xmlns="http://www.w3.org/1999/xhtml" >
+ <f:verbatim><![CDATA[
+.dr-ve{
+ width:400px;
+ height:400px;
+}
+]]>
+</f:verbatim>
+</f:template>
Added:
trunk/ui/virtualEarth/src/main/resources/org/richfaces/renderkit/html/script/virtualEarth.js
===================================================================
---
trunk/ui/virtualEarth/src/main/resources/org/richfaces/renderkit/html/script/virtualEarth.js
(rev 0)
+++
trunk/ui/virtualEarth/src/main/resources/org/richfaces/renderkit/html/script/virtualEarth.js 2007-07-17
01:14:22 UTC (rev 1646)
@@ -0,0 +1,18 @@
+
+function __addLoadEvent(func) {
+Event.observe(window, "load", func );
+}
+
+function __initVirtualEarthdiv(mapVar, clid ) {
+ window[mapVar] = new VEMap(clid);
+}
+
+function __applyVirtualEarthparam(mapVar,onloadfunc,lat,lng,zoom,mapStyle,dashboardSize)
+ {
+ var map = window[mapVar];
+ map.SetDashboardSize(dashboardSize);
+ map.onLoadMap = onloadfunc;
+ map.LoadMap();
+ map.SetCenterAndZoom(new VELatLong(lat, lng), zoom);
+ map.SetMapStyle(mapStyle);
+}
\ No newline at end of file
Added: trunk/ui/virtualEarth/src/main/templates/virtualEarth.jspx
===================================================================
--- trunk/ui/virtualEarth/src/main/templates/virtualEarth.jspx
(rev 0)
+++ trunk/ui/virtualEarth/src/main/templates/virtualEarth.jspx 2007-07-17 01:14:22 UTC
(rev 1646)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+
xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c="
http://java.sun.com/jsf/core"
+ xmlns:ui="
http://ajax4jsf.org/cdk/ui"
+ xmlns:u="
http://ajax4jsf.org/cdk/u"
+ xmlns:x="
http://ajax4jsf.org/cdk/x"
+ class="org.richfaces.renderkit.html.VirtualEarthRenderer"
+ baseclass="org.ajax4jsf.renderkit.HeaderResourcesRendererBase"
+ component="org.richfaces.component.UIVirtualEarth">
+ <f:clientid var="clientId"/>
+
+
+ <c:set var="zoom"
value="#{component.attributes['zoom']}"/>
+ <c:set var="style"
value="#{component.attributes['style']}"/>
+ <c:set var="map"
value="#{component.attributes['var']}"/>
+ <c:set var="lat"
value="#{component.attributes['lat']}"/>
+ <c:set var="lng"
value="#{component.attributes['lng']}"/>
+ <c:set var="mapStyle"
value="VEMapStyle.#{component.attributes['mapStyle']}"/>
+ <c:set var="onLoadMap"
value="#{component.attributes['onLoadMap']}"/>
+ <c:set var="dashboardSize"
value="VEDashboardSize.#{component.attributes['dashboardSize']}"/>
+ <h:styles>css/virtualEarth.xcss</h:styles>
+ <h:scripts>new
org.ajax4jsf.javascript.PrototypeScript(),script/virtualEarth.js</h:scripts>
+
+<div id="#{clientId}" style="position:relative; width:400px;
height:400px;#{style}" class="dr-ve rich-virtualEarth
#{component.attributes['styleClass']}"
+ x:passThruWithExclusions="id, styleClass,style"
+>
+<script type="text/javascript"
src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=5" />
+<script type="text/javascript">
+ //<![CDATA[
+
+function __initVE() { __initVirtualEarthdiv("#{map}","#{clientId}");
+var userfunc = new Function('event', '#{onLoadMap}');
+ __applyVirtualEarthparam("#{map}",userfunc, #{lat}, #{lng},#{zoom},
#{mapStyle},#{dashboardSize});
+}
+__addLoadEvent(__initVE);
+//]]>
+</script>
+</div>
+</f:root>
\ No newline at end of file
Added: trunk/ui/virtualEarth/target/classes/META-INF/virtualEarth.tld
===================================================================
--- trunk/ui/virtualEarth/target/classes/META-INF/virtualEarth.tld
(rev 0)
+++ trunk/ui/virtualEarth/target/classes/META-INF/virtualEarth.tld 2007-07-17 01:14:22 UTC
(rev 1646)
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library
1.2//EN"
+
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+<taglib>
+ <tlib-version>1.2</tlib-version>
+ <jsp-version>1.2</jsp-version>
+ <short-name>virtualEarth</short-name>
+ <
uri>http://labs.jboss.com/jbossrichfaces/ui/virtualEarth</uri>
+
+
+ <tag>
+ <name>virtualEarth</name>
+ <tag-class>org.richfaces.taglib.VirtualEarthTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>It presents the google map in JSF
applications</description>
+ <attribute>
+ <name>lat</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>Initial latitude coordinate in degrees, as a number between -90 and
+90</description>
+ </attribute>
+ <attribute>
+ <name>var</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The JavaScript variable that is used to access the Virtual Earth
API. If you have
+ more than one Virtual Earth components on the same page, use individual
+ key for each of them. The default variable name is "map" (without
quotes)</description>
+ </attribute>
+ <attribute>
+ <name>zoom</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>Initial zoom level as a number between 1 and 18. The default value
is 17</description>
+ </attribute>
+ <attribute>
+ <name>onkeyup</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>HTML: a script expression; a key is released</description>
+ </attribute>
+ <attribute>
+ <name>onclick</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>HTML: a script expression; a pointer button is
clicked</description>
+ </attribute>
+ <attribute>
+ <name>onLoadMap</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>JavaScript code invoked just after the Virtual Earth object is
initiated.</description>
+ </attribute>
+ <attribute>
+ <name>rendered</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>If "false", this component is not
rendered</description>
+ </attribute>
+ <attribute>
+ <name>onmouseout</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>HTML: a script expression; a pointer is moved
away</description>
+ </attribute>
+ <attribute>
+ <name>onkeydown</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>HTML: a script expression; a key is pressed
down</description>
+ </attribute>
+ <attribute>
+ <name>id</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>Every component may have a unique id that is automatically created
if omitted</description>
+ </attribute>
+ <attribute>
+ <name>onmousedown</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>HTML: script expression; a pointer button is pressed
down</description>
+ </attribute>
+ <attribute>
+ <name>styleClass</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>Corresponds to the HTML class attribute</description>
+ </attribute>
+ <attribute>
+ <name>dashboardSize</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>Initial map type. The possible values are Normal,Small,Tiny. The
default value is Normal</description>
+ </attribute>
+ <attribute>
+ <name>onkeypress</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>HTML: a script expression; a key is pressed and
released</description>
+ </attribute>
+ <attribute>
+ <name>ondblclick</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>HTML: a script expression; a pointer button is
double-clicked</description>
+ </attribute>
+ <attribute>
+ <name>style</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>CSS style(s) is/are to be applied when this component is
rendered</description>
+ </attribute>
+ <attribute>
+ <name>onmouseup</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>HTML: script expression; a pointer button is
released</description>
+ </attribute>
+ <attribute>
+ <name>lng</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>Initial longitude coordinate in degrees, as a number between -180
and +180</description>
+ </attribute>
+ <attribute>
+ <name>binding</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The attribute takes a value-binding expression for a component
property of
+a backing bean</description>
+ </attribute>
+ <attribute>
+ <name>onmousemove</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>HTML: a script expression; a pointer is moved
within</description>
+ </attribute>
+ <attribute>
+ <name>mapStyle</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>Navigation control size. The possible values are
Road,Aerial,Hybrid,Birdseye. The default value is Road</description>
+ </attribute>
+ <attribute>
+ <name>onmouseover</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>HTML: a script expression; a pointer is moved
onto</description>
+ </attribute>
+ </tag>
+
+
+
+
+
+</taglib>
\ No newline at end of file
Added:
trunk/ui/virtualEarth/target/classes/org/richfaces/renderkit/html/VirtualEarthRenderer.class
===================================================================
(Binary files differ)
Property changes on:
trunk/ui/virtualEarth/target/classes/org/richfaces/renderkit/html/VirtualEarthRenderer.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/ui/virtualEarth/target/generated-component/java/org/richfaces/component/html/HtmlVirtualEarth.java
===================================================================
---
trunk/ui/virtualEarth/target/generated-component/java/org/richfaces/component/html/HtmlVirtualEarth.java
(rev 0)
+++
trunk/ui/virtualEarth/target/generated-component/java/org/richfaces/component/html/HtmlVirtualEarth.java 2007-07-17
01:14:22 UTC (rev 1646)
@@ -0,0 +1,751 @@
+/**
+ * GENERATED FILE - DO NOT EDIT
+ *
+ */
+
+package org.richfaces.component.html;
+
+import java.lang.String ;
+import org.richfaces.component.UIVirtualEarth ;
+
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+
+/**
+ * Component-Type org.richfaces.VirtualEarth
+ * Component-Family org.richfaces.VirtualEarth
+ * Renderer-Type org.richfaces.VirtualEarthRenderer
+ * It presents the google map in JSF applications
+ */
+ public class HtmlVirtualEarth extends org.richfaces.component.UIVirtualEarth {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.VirtualEarth";
+
+ /**
+ * Constructor to init default renderers
+ */
+ public HtmlVirtualEarth (){
+ setRendererType("org.richfaces.VirtualEarthRenderer");
+ }
+
+// Component properties fields
+ /**
+ * lat
+ * Initial latitude coordinate in degrees, as a number between -90 and +90
+ */
+ private String _lat = null; /* Default is "37.9721046"*/
+ /**
+ * var
+ * The JavaScript variable that is used to access the Virtual Earth API. If you have
+ more than one Virtual Earth components on the same page, use individual
+ key for each of them. The default variable name is "map" (without quotes)
+ */
+ private String _var = null; /* Default is "map"*/
+ /**
+ * zoom
+ * Initial zoom level as a number between 1 and 18. The default value is 17
+ */
+ private String _zoom = null; /* Default is "17"*/
+ /**
+ * onkeyup
+ * HTML: a script expression; a key is released
+ */
+ private String _onkeyup = null; /* Default is null*/
+ /**
+ * onclick
+ * HTML: a script expression; a pointer button is clicked
+ */
+ private String _onclick = null; /* Default is null*/
+ /**
+ * onLoadMap
+ * JavaScript code invoked just after the Virtual Earth object is initiated.
+ */
+ private String _onLoadMap = null; /* Default is ""*/
+ /**
+ * onmouseout
+ * HTML: a script expression; a pointer is moved away
+ */
+ private String _onmouseout = null; /* Default is null*/
+ /**
+ * onkeydown
+ * HTML: a script expression; a key is pressed down
+ */
+ private String _onkeydown = null; /* Default is null*/
+ /**
+ * onmousedown
+ * HTML: script expression; a pointer button is pressed down
+ */
+ private String _onmousedown = null; /* Default is null*/
+ /**
+ * styleClass
+ * Corresponds to the HTML class attribute
+ */
+ private String _styleClass = null; /* Default is null*/
+ /**
+ * dashboardSize
+ * Initial map type. The possible values are Normal,Small,Tiny. The default value is
Normal
+ */
+ private String _dashboardSize = null; /* Default is "Normal"*/
+ /**
+ * onkeypress
+ * HTML: a script expression; a key is pressed and released
+ */
+ private String _onkeypress = null; /* Default is null*/
+ /**
+ * ondblclick
+ * HTML: a script expression; a pointer button is double-clicked
+ */
+ private String _ondblclick = null; /* Default is null*/
+ /**
+ * style
+ * CSS style(s) is/are to be applied when this component is rendered
+ */
+ private String _style = null; /* Default is null*/
+ /**
+ * onmouseup
+ * HTML: script expression; a pointer button is released
+ */
+ private String _onmouseup = null; /* Default is null*/
+ /**
+ * lng
+ * Initial longitude coordinate in degrees, as a number between -180 and +180
+ */
+ private String _lng = null; /* Default is "-122.0424842834"*/
+ /**
+ * onmousemove
+ * HTML: a script expression; a pointer is moved within
+ */
+ private String _onmousemove = null; /* Default is null*/
+ /**
+ * mapStyle
+ * Navigation control size. The possible values are Road,Aerial,Hybrid,Birdseye. The
default value is Road
+ */
+ private String _mapStyle = null; /* Default is "Road"*/
+ /**
+ * onmouseover
+ * HTML: a script expression; a pointer is moved onto
+ */
+ private String _onmouseover = null; /* Default is null*/
+
+// Getters-setters
+ /**
+ * Initial latitude coordinate in degrees, as a number between -90 and +90
+ * Setter for lat
+ * @param lat - new value
+ */
+ public void setLat( String __lat ){
+ this._lat = __lat;
+ }
+
+
+ /**
+ * Initial latitude coordinate in degrees, as a number between -90 and +90
+ * Getter for lat
+ * @return lat value from local variable or value bindings
+ */
+ public String getLat( ){
+ if (null != this._lat)
+ {
+ return this._lat;
+ }
+ ValueBinding vb = getValueBinding("lat");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return "37.9721046";
+ }
+ }
+ /**
+ * The JavaScript variable that is used to access the Virtual Earth API. If you have
+ more than one Virtual Earth components on the same page, use individual
+ key for each of them. The default variable name is "map" (without quotes)
+ * Setter for var
+ * @param var - new value
+ */
+ public void setVar( String __var ){
+ this._var = __var;
+ }
+
+
+ /**
+ * The JavaScript variable that is used to access the Virtual Earth API. If you have
+ more than one Virtual Earth components on the same page, use individual
+ key for each of them. The default variable name is "map" (without quotes)
+ * Getter for var
+ * @return var value from local variable or value bindings
+ */
+ public String getVar( ){
+ if (null != this._var)
+ {
+ return this._var;
+ }
+ ValueBinding vb = getValueBinding("var");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return "map";
+ }
+ }
+ /**
+ * Initial zoom level as a number between 1 and 18. The default value is 17
+ * Setter for zoom
+ * @param zoom - new value
+ */
+ public void setZoom( String __zoom ){
+ this._zoom = __zoom;
+ }
+
+
+ /**
+ * Initial zoom level as a number between 1 and 18. The default value is 17
+ * Getter for zoom
+ * @return zoom value from local variable or value bindings
+ */
+ public String getZoom( ){
+ if (null != this._zoom)
+ {
+ return this._zoom;
+ }
+ ValueBinding vb = getValueBinding("zoom");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return "17";
+ }
+ }
+ /**
+ * HTML: a script expression; a key is released
+ * Setter for onkeyup
+ * @param onkeyup - new value
+ */
+ public void setOnkeyup( String __onkeyup ){
+ this._onkeyup = __onkeyup;
+ }
+
+
+ /**
+ * HTML: a script expression; a key is released
+ * Getter for onkeyup
+ * @return onkeyup value from local variable or value bindings
+ */
+ public String getOnkeyup( ){
+ if (null != this._onkeyup)
+ {
+ return this._onkeyup;
+ }
+ ValueBinding vb = getValueBinding("onkeyup");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return null;
+ }
+ }
+ /**
+ * HTML: a script expression; a pointer button is clicked
+ * Setter for onclick
+ * @param onclick - new value
+ */
+ public void setOnclick( String __onclick ){
+ this._onclick = __onclick;
+ }
+
+
+ /**
+ * HTML: a script expression; a pointer button is clicked
+ * Getter for onclick
+ * @return onclick value from local variable or value bindings
+ */
+ public String getOnclick( ){
+ if (null != this._onclick)
+ {
+ return this._onclick;
+ }
+ ValueBinding vb = getValueBinding("onclick");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return null;
+ }
+ }
+ /**
+ * JavaScript code invoked just after the Virtual Earth object is initiated.
+ * Setter for onLoadMap
+ * @param onLoadMap - new value
+ */
+ public void setOnLoadMap( String __onLoadMap ){
+ this._onLoadMap = __onLoadMap;
+ }
+
+
+ /**
+ * JavaScript code invoked just after the Virtual Earth object is initiated.
+ * Getter for onLoadMap
+ * @return onLoadMap value from local variable or value bindings
+ */
+ public String getOnLoadMap( ){
+ if (null != this._onLoadMap)
+ {
+ return this._onLoadMap;
+ }
+ ValueBinding vb = getValueBinding("onLoadMap");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return "";
+ }
+ }
+ /**
+ * HTML: a script expression; a pointer is moved away
+ * Setter for onmouseout
+ * @param onmouseout - new value
+ */
+ public void setOnmouseout( String __onmouseout ){
+ this._onmouseout = __onmouseout;
+ }
+
+
+ /**
+ * HTML: a script expression; a pointer is moved away
+ * Getter for onmouseout
+ * @return onmouseout value from local variable or value bindings
+ */
+ public String getOnmouseout( ){
+ if (null != this._onmouseout)
+ {
+ return this._onmouseout;
+ }
+ ValueBinding vb = getValueBinding("onmouseout");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return null;
+ }
+ }
+ /**
+ * HTML: a script expression; a key is pressed down
+ * Setter for onkeydown
+ * @param onkeydown - new value
+ */
+ public void setOnkeydown( String __onkeydown ){
+ this._onkeydown = __onkeydown;
+ }
+
+
+ /**
+ * HTML: a script expression; a key is pressed down
+ * Getter for onkeydown
+ * @return onkeydown value from local variable or value bindings
+ */
+ public String getOnkeydown( ){
+ if (null != this._onkeydown)
+ {
+ return this._onkeydown;
+ }
+ ValueBinding vb = getValueBinding("onkeydown");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return null;
+ }
+ }
+ /**
+ * HTML: script expression; a pointer button is pressed down
+ * Setter for onmousedown
+ * @param onmousedown - new value
+ */
+ public void setOnmousedown( String __onmousedown ){
+ this._onmousedown = __onmousedown;
+ }
+
+
+ /**
+ * HTML: script expression; a pointer button is pressed down
+ * Getter for onmousedown
+ * @return onmousedown value from local variable or value bindings
+ */
+ public String getOnmousedown( ){
+ if (null != this._onmousedown)
+ {
+ return this._onmousedown;
+ }
+ ValueBinding vb = getValueBinding("onmousedown");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return null;
+ }
+ }
+ /**
+ * Corresponds to the HTML class attribute
+ * Setter for styleClass
+ * @param styleClass - new value
+ */
+ public void setStyleClass( String __styleClass ){
+ this._styleClass = __styleClass;
+ }
+
+
+ /**
+ * Corresponds to the HTML class attribute
+ * Getter for styleClass
+ * @return styleClass value from local variable or value bindings
+ */
+ public String getStyleClass( ){
+ if (null != this._styleClass)
+ {
+ return this._styleClass;
+ }
+ ValueBinding vb = getValueBinding("styleClass");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return null;
+ }
+ }
+ /**
+ * Initial map type. The possible values are Normal,Small,Tiny. The default value is
Normal
+ * Setter for dashboardSize
+ * @param dashboardSize - new value
+ */
+ public void setDashboardSize( String __dashboardSize ){
+ this._dashboardSize = __dashboardSize;
+ }
+
+
+ /**
+ * Initial map type. The possible values are Normal,Small,Tiny. The default value is
Normal
+ * Getter for dashboardSize
+ * @return dashboardSize value from local variable or value bindings
+ */
+ public String getDashboardSize( ){
+ if (null != this._dashboardSize)
+ {
+ return this._dashboardSize;
+ }
+ ValueBinding vb = getValueBinding("dashboardSize");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return "Normal";
+ }
+ }
+ /**
+ * HTML: a script expression; a key is pressed and released
+ * Setter for onkeypress
+ * @param onkeypress - new value
+ */
+ public void setOnkeypress( String __onkeypress ){
+ this._onkeypress = __onkeypress;
+ }
+
+
+ /**
+ * HTML: a script expression; a key is pressed and released
+ * Getter for onkeypress
+ * @return onkeypress value from local variable or value bindings
+ */
+ public String getOnkeypress( ){
+ if (null != this._onkeypress)
+ {
+ return this._onkeypress;
+ }
+ ValueBinding vb = getValueBinding("onkeypress");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return null;
+ }
+ }
+ /**
+ * HTML: a script expression; a pointer button is double-clicked
+ * Setter for ondblclick
+ * @param ondblclick - new value
+ */
+ public void setOndblclick( String __ondblclick ){
+ this._ondblclick = __ondblclick;
+ }
+
+
+ /**
+ * HTML: a script expression; a pointer button is double-clicked
+ * Getter for ondblclick
+ * @return ondblclick value from local variable or value bindings
+ */
+ public String getOndblclick( ){
+ if (null != this._ondblclick)
+ {
+ return this._ondblclick;
+ }
+ ValueBinding vb = getValueBinding("ondblclick");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return null;
+ }
+ }
+ /**
+ * CSS style(s) is/are to be applied when this component is rendered
+ * Setter for style
+ * @param style - new value
+ */
+ public void setStyle( String __style ){
+ this._style = __style;
+ }
+
+
+ /**
+ * CSS style(s) is/are to be applied when this component is rendered
+ * Getter for style
+ * @return style value from local variable or value bindings
+ */
+ public String getStyle( ){
+ if (null != this._style)
+ {
+ return this._style;
+ }
+ ValueBinding vb = getValueBinding("style");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return null;
+ }
+ }
+ /**
+ * HTML: script expression; a pointer button is released
+ * Setter for onmouseup
+ * @param onmouseup - new value
+ */
+ public void setOnmouseup( String __onmouseup ){
+ this._onmouseup = __onmouseup;
+ }
+
+
+ /**
+ * HTML: script expression; a pointer button is released
+ * Getter for onmouseup
+ * @return onmouseup value from local variable or value bindings
+ */
+ public String getOnmouseup( ){
+ if (null != this._onmouseup)
+ {
+ return this._onmouseup;
+ }
+ ValueBinding vb = getValueBinding("onmouseup");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return null;
+ }
+ }
+ /**
+ * Initial longitude coordinate in degrees, as a number between -180 and +180
+ * Setter for lng
+ * @param lng - new value
+ */
+ public void setLng( String __lng ){
+ this._lng = __lng;
+ }
+
+
+ /**
+ * Initial longitude coordinate in degrees, as a number between -180 and +180
+ * Getter for lng
+ * @return lng value from local variable or value bindings
+ */
+ public String getLng( ){
+ if (null != this._lng)
+ {
+ return this._lng;
+ }
+ ValueBinding vb = getValueBinding("lng");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return "-122.0424842834";
+ }
+ }
+ /**
+ * HTML: a script expression; a pointer is moved within
+ * Setter for onmousemove
+ * @param onmousemove - new value
+ */
+ public void setOnmousemove( String __onmousemove ){
+ this._onmousemove = __onmousemove;
+ }
+
+
+ /**
+ * HTML: a script expression; a pointer is moved within
+ * Getter for onmousemove
+ * @return onmousemove value from local variable or value bindings
+ */
+ public String getOnmousemove( ){
+ if (null != this._onmousemove)
+ {
+ return this._onmousemove;
+ }
+ ValueBinding vb = getValueBinding("onmousemove");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return null;
+ }
+ }
+ /**
+ * Navigation control size. The possible values are Road,Aerial,Hybrid,Birdseye. The
default value is Road
+ * Setter for mapStyle
+ * @param mapStyle - new value
+ */
+ public void setMapStyle( String __mapStyle ){
+ this._mapStyle = __mapStyle;
+ }
+
+
+ /**
+ * Navigation control size. The possible values are Road,Aerial,Hybrid,Birdseye. The
default value is Road
+ * Getter for mapStyle
+ * @return mapStyle value from local variable or value bindings
+ */
+ public String getMapStyle( ){
+ if (null != this._mapStyle)
+ {
+ return this._mapStyle;
+ }
+ ValueBinding vb = getValueBinding("mapStyle");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return "Road";
+ }
+ }
+ /**
+ * HTML: a script expression; a pointer is moved onto
+ * Setter for onmouseover
+ * @param onmouseover - new value
+ */
+ public void setOnmouseover( String __onmouseover ){
+ this._onmouseover = __onmouseover;
+ }
+
+
+ /**
+ * HTML: a script expression; a pointer is moved onto
+ * Getter for onmouseover
+ * @return onmouseover value from local variable or value bindings
+ */
+ public String getOnmouseover( ){
+ if (null != this._onmouseover)
+ {
+ return this._onmouseover;
+ }
+ ValueBinding vb = getValueBinding("onmouseover");
+ if (null != vb){
+ return (String)vb.getValue(getFacesContext());
+ } else {
+ return null;
+ }
+ }
+
+// Component family.
+ public static final String COMPONENT_FAMILY = "org.richfaces.VirtualEarth";
+
+ public String getFamily() {
+ return COMPONENT_FAMILY;
+ }
+
+// Save state
+// ----------------------------------------------------- StateHolder Methods
+
+
+ public Object saveState(FacesContext context) {
+ Object values[] = new Object[20];
+ values[0] = super.saveState(context);
+ values[1] = _lat;
+
+ values[2] = _var;
+
+ values[3] = _zoom;
+
+ values[4] = _onkeyup;
+
+ values[5] = _onclick;
+
+ values[6] = _onLoadMap;
+
+ values[7] = _onmouseout;
+
+ values[8] = _onkeydown;
+
+ values[9] = _onmousedown;
+
+ values[10] = _styleClass;
+
+ values[11] = _dashboardSize;
+
+ values[12] = _onkeypress;
+
+ values[13] = _ondblclick;
+
+ values[14] = _style;
+
+ values[15] = _onmouseup;
+
+ values[16] = _lng;
+
+ values[17] = _onmousemove;
+
+ values[18] = _mapStyle;
+
+ values[19] = _onmouseover;
+
+ return values;
+ }
+
+
+ public void restoreState(FacesContext context, Object state) {
+ Object values[] = (Object[]) state;
+ super.restoreState(context, values[0]);
+ _lat = (String)values[1] ;
+
+ _var = (String)values[2] ;
+
+ _zoom = (String)values[3] ;
+
+ _onkeyup = (String)values[4] ;
+
+ _onclick = (String)values[5] ;
+
+ _onLoadMap = (String)values[6] ;
+
+ _onmouseout = (String)values[7] ;
+
+ _onkeydown = (String)values[8] ;
+
+ _onmousedown = (String)values[9] ;
+
+ _styleClass = (String)values[10] ;
+
+ _dashboardSize = (String)values[11] ;
+
+ _onkeypress = (String)values[12] ;
+
+ _ondblclick = (String)values[13] ;
+
+ _style = (String)values[14] ;
+
+ _onmouseup = (String)values[15] ;
+
+ _lng = (String)values[16] ;
+
+ _onmousemove = (String)values[17] ;
+
+ _mapStyle = (String)values[18] ;
+
+ _onmouseover = (String)values[19] ;
+
+
+
+ }
+// Utilites
+
+}
\ No newline at end of file