JBoss Rich Faces SVN: r1655 - trunk/ui/dataTable/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-07-17 08:41:01 -0400 (Tue, 17 Jul 2007)
New Revision: 1655
Modified:
trunk/ui/dataTable/src/main/config/component/dataGrid.xml
trunk/ui/dataTable/src/main/config/component/dataList.xml
trunk/ui/dataTable/src/main/config/component/dataTable.xml
trunk/ui/dataTable/src/main/config/component/subTable.xml
Log:
http://jira.jboss.com/jira/browse/RF-410
Modified: trunk/ui/dataTable/src/main/config/component/dataGrid.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/dataGrid.xml 2007-07-17 12:02:50 UTC (rev 1654)
+++ trunk/ui/dataTable/src/main/config/component/dataGrid.xml 2007-07-17 12:41:01 UTC (rev 1655)
@@ -38,7 +38,7 @@
<property>
<name>ajaxKeys</name>
<classname>java.lang.String</classname>
- <description>This attribute defines strings that are updated after an AJAX request</description>
+ <description>This attribute defines rows that are updated after an AJAX request</description>
</property>
<property>
<name>elements</name>
Modified: trunk/ui/dataTable/src/main/config/component/dataList.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/dataList.xml 2007-07-17 12:02:50 UTC (rev 1654)
+++ trunk/ui/dataTable/src/main/config/component/dataList.xml 2007-07-17 12:41:01 UTC (rev 1655)
@@ -40,7 +40,7 @@
<property>
<name>ajaxKeys</name>
<classname>java.lang.String</classname>
- <description>This attribute defines strings that are updated after an AJAX request</description>
+ <description>This attribute defines rows that are updated after an AJAX request</description>
</property>
<property>
<name>rowKey</name>
@@ -118,7 +118,7 @@
<property>
<name>ajaxKeys</name>
<classname>java.lang.String</classname>
- <description>This attribute defines strings that are updated after an AJAX request</description>
+ <description>This attribute defines rows that are updated after an AJAX request</description>
</property>
<property>
<name>rowKey</name>
@@ -202,7 +202,7 @@
<property>
<name>ajaxKeys</name>
<classname>java.lang.String</classname>
- <description>This attribute defines strings that are updated after an AJAX request</description>
+ <description>This attribute defines rows that are updated after an AJAX request</description>
</property>
<property>
<name>rowKey</name>
Modified: trunk/ui/dataTable/src/main/config/component/dataTable.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/dataTable.xml 2007-07-17 12:02:50 UTC (rev 1654)
+++ trunk/ui/dataTable/src/main/config/component/dataTable.xml 2007-07-17 12:41:01 UTC (rev 1655)
@@ -35,7 +35,7 @@
<property>
<name>ajaxKeys</name>
<classname>java.lang.String</classname>
- <description>This attribute defines strings that are updated after an AJAX request</description>
+ <description>This attribute defines rows that are updated after an AJAX request</description>
</property>
<property>
<name>columns</name>
Modified: trunk/ui/dataTable/src/main/config/component/subTable.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/subTable.xml 2007-07-17 12:02:50 UTC (rev 1654)
+++ trunk/ui/dataTable/src/main/config/component/subTable.xml 2007-07-17 12:41:01 UTC (rev 1655)
@@ -34,7 +34,7 @@
<property>
<name>ajaxKeys</name>
<classname>java.lang.String</classname>
- <description>This attribute defines strings that are updated after an AJAX request</description>
+ <description>This attribute defines rows that are updated after an AJAX request</description>
</property>
<property disabled="true" hidden="true">
<name>breakBefore</name>
17 years, 6 months
JBoss Rich Faces SVN: r1654 - in branches/3.0.2/sandbox/tooltip: src/main/config/component and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: dbiatenia
Date: 2007-07-17 08:02:50 -0400 (Tue, 17 Jul 2007)
New Revision: 1654
Modified:
branches/3.0.2/sandbox/tooltip/pom.xml
branches/3.0.2/sandbox/tooltip/src/main/config/component/toolTip.xml
Log:
Modified: branches/3.0.2/sandbox/tooltip/pom.xml
===================================================================
--- branches/3.0.2/sandbox/tooltip/pom.xml 2007-07-17 10:59:41 UTC (rev 1653)
+++ branches/3.0.2/sandbox/tooltip/pom.xml 2007-07-17 12:02:50 UTC (rev 1654)
@@ -1,4 +1,5 @@
-<?xml version="1.0"?><project>
+<?xml version="1.0"?>
+<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>richfaces-parent</artifactId>
<groupId>org.richfaces</groupId>
@@ -13,7 +14,7 @@
<plugin>
<groupId>org.ajax4jsf.cdk</groupId>
<artifactId>maven-cdk-plugin</artifactId>
- <version>1.1.1-SNAPSHOT</version>
+ <version>1.1.2-SNAPSHOT</version>
<executions>
<execution>
<phase>generate-sources</phase>
@@ -21,6 +22,13 @@
<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>
Modified: branches/3.0.2/sandbox/tooltip/src/main/config/component/toolTip.xml
===================================================================
--- branches/3.0.2/sandbox/tooltip/src/main/config/component/toolTip.xml 2007-07-17 10:59:41 UTC (rev 1653)
+++ branches/3.0.2/sandbox/tooltip/src/main/config/component/toolTip.xml 2007-07-17 12:02:50 UTC (rev 1654)
@@ -1,20 +1,35 @@
<?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" >
+<!--
+<!DOCTYPE components PUBLIC "-//EXADEL//Generator config/EN" "http://exadel.com/dtds/component-config.dtd" >
+ -->
+
+
+
<components>
<component>
<name>org.richfaces.component.ToolTip</name>
<family>org.richfaces.component.ToolTip</family>
- <description>Defines the menu on the page and the set of the child elements properties in layout.</description>
+ <classname>org.richfaces.component.html.HtmlToolTip</classname>
<superclass>org.richfaces.component.UIToolTip</superclass>
- <classname>org.richfaces.component.html.HtmlToolTip</classname>
+ <description><![CDATA[Defines tooltip for parent component.]]></description>
+ <test>
+ <classname>org.richfaces.component.html.HtmlToolTipTest</classname>
+ <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
+ </test>
+
<renderer generate="true" override="true">
<name>org.richfaces.renderkit.html.ToolTipRenderer</name>
<template>org/richfaces/htmltooltip.jspx</template>
</renderer>
<tag>
<name>toolTip</name>
- <classname>org.richfaces.taglib.ToolTipTag</classname>
+ <classname>org.richfaces.taglib.HtmlToolTipTag</classname>
<superclass>org.ajax4jsf.framework.taglib.HtmlComponentTagBase</superclass>
+ <test>
+ <classname>org.richfaces.taglib.HtmlToolTipTagTest</classname>
+ <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
+ </test>
</tag>
<property>
17 years, 6 months
JBoss Rich Faces SVN: r1653 - in branches/3.0.2/sandbox/calendar/src: main/java/org/richfaces/renderkit and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-07-17 06:59:41 -0400 (Tue, 17 Jul 2007)
New Revision: 1653
Modified:
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
branches/3.0.2/sandbox/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java
Log:
Modified: branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
--- branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-07-17 02:16:54 UTC (rev 1652)
+++ branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-07-17 10:59:41 UTC (rev 1653)
@@ -41,6 +41,7 @@
import javax.faces.context.FacesContext;
import javax.faces.convert.ConverterException;
import javax.faces.convert.DateTimeConverter;
+import javax.faces.el.ValueBinding;
import javax.faces.event.AbortProcessingException;
import javax.faces.event.FacesEvent;
import javax.faces.render.Renderer;
@@ -98,24 +99,7 @@
Date valueString = calendar.getCurrentDate();
return valueString.toString();
}
-
- public void decode(FacesContext context, UIComponent component) {
-
- if (context == null) {
- throw new NullPointerException();
- }
- super.decode(context);
-
- ExternalContext external = context.getExternalContext();
- Map requestParams = external.getRequestParameterMap();
-
- UICalendar calendar = (UICalendar) component;
- String clientId = calendar.getClientId(context);
-
- Date currentDate = (Date) requestParams.get(clientId);
- calendar.setCurrentDate(currentDate);
- }
-
+
public Date getConvertedValue(FacesContext context,
String currentDateString) throws ConverterException {
@@ -125,7 +109,32 @@
return newCurrentDate;
}
+
+/* public void queueEvent(FacesEvent event) {
+ FacesEvent resultEvent = event;
+ if (event instanceof CurrentDateEvent) {
+ event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
+ } else {
+ event.setPhaseId(PhaseId.INVOKE_APPLICATION);
+ }
+ resultEvent = wrapTreeEvent(event);
+ super.queueEvent(resultEvent);
+ }
+*/
+ public void updateModel(FacesContext context) {
+
+ if (context == null) {
+ throw new NullPointerException();
+ }
+ ValueBinding vb = getValueBinding("currentDate");
+ if (vb != null) {
+ vb.setValue(context, getLocalValue());//??
+ setValue(null);
+ setLocalValueSet(false);
+ return;
+ }
+ }
// --------------------------------------------------------
private int getLastDayOfWeek(Calendar calendar) {
Modified: branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-07-17 02:16:54 UTC (rev 1652)
+++ branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-07-17 10:59:41 UTC (rev 1653)
@@ -27,6 +27,7 @@
import java.util.Map;
import javax.faces.component.UIComponent;
+import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.event.FacesEvent;
@@ -96,17 +97,18 @@
.setCurrentDate(convertCurrentDate(currentDateString));
}
- CurrentDateEvent ev = new CurrentDateEvent(component) ;
- ev.setPhaseId(PhaseId.PROCESS_VALIDATIONS);
- ev.queue();
+// CurrentDateEvent ev = new CurrentDateEvent(component) ;
+// ev.setPhaseId(PhaseId.PROCESS_VALIDATIONS);
+// ev.queue();
new AjaxEvent(component).queue();
-
}
+
+
public void encodeChildren(FacesContext context, UIComponent calendar)
- throws IOException {
-
+ throws IOException {
+
}
public void writeMarkupScriptBody(FacesContext context,
Modified: branches/3.0.2/sandbox/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java
===================================================================
--- branches/3.0.2/sandbox/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java 2007-07-17 02:16:54 UTC (rev 1652)
+++ branches/3.0.2/sandbox/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java 2007-07-17 10:59:41 UTC (rev 1653)
@@ -10,6 +10,7 @@
import javax.faces.component.UIComponent;
import javax.faces.component.UIViewRoot;
+import javax.faces.component.html.HtmlForm;
import javax.faces.component.html.HtmlOutputText;
import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
@@ -22,12 +23,35 @@
*
*/
public class CalendarComponentTest extends AbstractAjax4JsfTestCase {
+
+
+ private UIComponent form;
+ private UICalendar calendar;
+
public CalendarComponentTest(String name) {
super(name);
}
-
- public void testTidy() throws Exception {
+
+ public void setUp()throws Exception{
+
+ super.setUp();
+
+ form = new HtmlForm();
+ form.setId("form");
+ facesContext.getViewRoot().getChildren().add(form);
+
+ calendar = (UICalendar) application.createComponent(UICalendar.COMPONENT_TYPE);
+ calendar.setLocale(Locale.CHINESE);
+ Calendar calendarObject = Calendar.getInstance();
+ calendarObject.set(2001, Calendar.SEPTEMBER, 11);
+ calendar.setId("calendar");
+
+ form.getChildren().add(calendar);
+
+ }
+
+/* public void testTidy() throws Exception {
UIViewRoot viewRoot = facesContext.getViewRoot();
List children = viewRoot.getChildren();
UIComponent calendar = application.createComponent(UICalendar.COMPONENT_TYPE);
@@ -40,7 +64,7 @@
HtmlPage renderView = renderView();
System.out.println(renderView.asXml());
}
-
+*/
public void testPreloadRanges() throws Exception {
UICalendar calendar = (UICalendar) application.createComponent(UICalendar.COMPONENT_TYPE);
calendar.setLocale(Locale.FRENCH);
@@ -92,4 +116,19 @@
assertEquals(calendar.getPreloadDateRangeEnd(), range[range.length - 1]);
assertEquals(35, range.length);
}
+
+ public void testCalendarRenderer()throws Exception{
+
+ HtmlPage page = renderView();
+ assertNotNull(page);
+ System.out.println(page.asXml());
+
+
+ }
+
+ public void tearDown() throws Exception {
+ super.tearDown();
+ form = null;
+ calendar = null;
+ }
}
17 years, 6 months
JBoss Rich Faces SVN: r1652 - trunk/samples/virtualEarth-sample.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-07-16 22:16:54 -0400 (Mon, 16 Jul 2007)
New Revision: 1652
Added:
trunk/samples/virtualEarth-sample/.svnignore
trunk/samples/virtualEarth-sample/pom.xml
Log:
Added: trunk/samples/virtualEarth-sample/.svnignore
===================================================================
--- trunk/samples/virtualEarth-sample/.svnignore (rev 0)
+++ trunk/samples/virtualEarth-sample/.svnignore 2007-07-17 02:16:54 UTC (rev 1652)
@@ -0,0 +1,6 @@
+target
+.project
+.classpath
+.exadelproject
+.settings
+bin
Added: trunk/samples/virtualEarth-sample/pom.xml
===================================================================
--- trunk/samples/virtualEarth-sample/pom.xml (rev 0)
+++ trunk/samples/virtualEarth-sample/pom.xml 2007-07-17 02:16:54 UTC (rev 1652)
@@ -0,0 +1,22 @@
+<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>samples</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces</groupId>
+ <artifactId>virtualEarth-sample</artifactId>
+ <packaging>war</packaging>
+ <name>gmap-sample Maven Webapp</name>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>virtualEarth</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <finalName>virtualEarth-sample</finalName>
+ </build>
+</project>
\ No newline at end of file
17 years, 6 months
JBoss Rich Faces SVN: r1651 - in trunk/samples: virtualEarth-sample and 8 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-07-16 22:15:07 -0400 (Mon, 16 Jul 2007)
New Revision: 1651
Added:
trunk/samples/virtualEarth-sample/
trunk/samples/virtualEarth-sample/src/
trunk/samples/virtualEarth-sample/src/main/
trunk/samples/virtualEarth-sample/src/main/java/
trunk/samples/virtualEarth-sample/src/main/java/demo/
trunk/samples/virtualEarth-sample/src/main/java/demo/Bean.java
trunk/samples/virtualEarth-sample/src/main/resources/
trunk/samples/virtualEarth-sample/src/main/resources/japanCherry.skin.properties
trunk/samples/virtualEarth-sample/src/main/webapp/
trunk/samples/virtualEarth-sample/src/main/webapp/META-INF/
trunk/samples/virtualEarth-sample/src/main/webapp/META-INF/MANIFEST.MF
trunk/samples/virtualEarth-sample/src/main/webapp/WEB-INF/
trunk/samples/virtualEarth-sample/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/virtualEarth-sample/src/main/webapp/WEB-INF/faces-config.xml.l4t
trunk/samples/virtualEarth-sample/src/main/webapp/WEB-INF/web.xml
trunk/samples/virtualEarth-sample/src/main/webapp/index.jsp
trunk/samples/virtualEarth-sample/src/main/webapp/virtualEarth.xhtml
Log:
virtual earth sample
Added: trunk/samples/virtualEarth-sample/src/main/java/demo/Bean.java
===================================================================
--- trunk/samples/virtualEarth-sample/src/main/java/demo/Bean.java (rev 0)
+++ trunk/samples/virtualEarth-sample/src/main/java/demo/Bean.java 2007-07-17 02:15:07 UTC (rev 1651)
@@ -0,0 +1,41 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces 3.0 - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package demo;
+
+public class Bean {
+ String zoom;
+
+public String getZoom() {
+ return zoom;
+}
+
+public void setZoom(String zoom) {
+ this.zoom = zoom;
+}
+
+public String act() {
+ zoom = "17";
+ System.out.println("zoom="+zoom);
+ return null;
+}
+
+}
Added: trunk/samples/virtualEarth-sample/src/main/resources/japanCherry.skin.properties
===================================================================
--- trunk/samples/virtualEarth-sample/src/main/resources/japanCherry.skin.properties (rev 0)
+++ trunk/samples/virtualEarth-sample/src/main/resources/japanCherry.skin.properties 2007-07-17 02:15:07 UTC (rev 1651)
@@ -0,0 +1,35 @@
+# render.kit=HTML_BASIC
+#Colors
+headerBackgroundColor=#E8BDBD
+headTextColor=#980808
+selectBackgroundColor=#d9E0E0
+generalBackgroundColor=#F8ECEC
+generalTextColor=#000000
+panelTextColor=#000000
+shadowBackgroundColor=#AFB1B2
+shadowOpacity=2
+tableBorderColor=#C0C0C0
+tableBackgroundColor=#ffffff
+selectControlColor=#980808
+controlBorderColor=#DFA5A5
+interfaceLevel3D=10
+overAllBackground=#ffffff
+generalLinkColor=#980808
+hoverLinkColor=#E10000
+visitedLinkColor=#c0c0c0
+# Fonts
+headerSizeFont=12px
+headerFamilyFont=Arial, Verdana, sans-serif
+tabSizeFont=11
+tabFamilyFont=Arial, Verdana, sans-serif
+buttonSizeFont=12
+buttonFamilyFont=Arial, Verdana, sans-serif
+buttonRadiusCorner=12
+panelRadiusCorner=5
+tabRadiusCorner=5
+
+# Preferable
+preferablePanelBodyPadding=0px 0px 0px 0px
+preferableDataSizeFont=11px
+preferableDataFamilyFont=Arial, Verdana, sans-serif
+preferableHeaderWeightFont=bold
Added: trunk/samples/virtualEarth-sample/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- trunk/samples/virtualEarth-sample/src/main/webapp/META-INF/MANIFEST.MF (rev 0)
+++ trunk/samples/virtualEarth-sample/src/main/webapp/META-INF/MANIFEST.MF 2007-07-17 02:15:07 UTC (rev 1651)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: trunk/samples/virtualEarth-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/virtualEarth-sample/src/main/webapp/WEB-INF/faces-config.xml (rev 0)
+++ trunk/samples/virtualEarth-sample/src/main/webapp/WEB-INF/faces-config.xml 2007-07-17 02:15:07 UTC (rev 1651)
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>bean</managed-bean-name>
+ <managed-bean-class>demo.Bean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>zoom</property-name>
+ <property-class>java.lang.String</property-class>
+ <value>10</value>
+ </managed-property>
+ </managed-bean>
+</faces-config>
Added: trunk/samples/virtualEarth-sample/src/main/webapp/WEB-INF/faces-config.xml.l4t
===================================================================
--- trunk/samples/virtualEarth-sample/src/main/webapp/WEB-INF/faces-config.xml.l4t (rev 0)
+++ trunk/samples/virtualEarth-sample/src/main/webapp/WEB-INF/faces-config.xml.l4t 2007-07-17 02:15:07 UTC (rev 1651)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<PROCESS ENTITY="JSFProcess">
+ <PROCESS-ITEM ENTITY="JSFProcessGroup" NAME="rules:#panel.xhtml"
+ PATH="/panel.xhtml" SHAPE="98,111,0,0" persistent="true"/>
+ <PROCESS-ITEM ENTITY="JSFProcessGroup" NAME="rules:#gmap.xhtml"
+ PATH="/gmap.xhtml" SHAPE="63,198,0,0" persistent="true"/>
+</PROCESS>
Added: trunk/samples/virtualEarth-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/virtualEarth-sample/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ trunk/samples/virtualEarth-sample/src/main/webapp/WEB-INF/web.xml 2007-07-17 02:15:07 UTC (rev 1651)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <description>Richfaces virtualEarth Sample</description>
+ <display-name>virtualEarth-sample</display-name>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.REFRESH_PERIOD</param-name>
+ <param-value>2</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>client</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.validateXml</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.verifyObjects</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.SKIN</param-name>
+ <param-value>japanCherry</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
+ <param-value>com.sun.facelets.FaceletViewHandler</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <filter>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ajax4jsf</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Added: trunk/samples/virtualEarth-sample/src/main/webapp/index.jsp
===================================================================
--- trunk/samples/virtualEarth-sample/src/main/webapp/index.jsp (rev 0)
+++ trunk/samples/virtualEarth-sample/src/main/webapp/index.jsp 2007-07-17 02:15:07 UTC (rev 1651)
@@ -0,0 +1,7 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head></head>
+ <body>
+ <jsp:forward page="virtualEarth.jsf" />
+ </body>
+</html>
\ No newline at end of file
Added: trunk/samples/virtualEarth-sample/src/main/webapp/virtualEarth.xhtml
===================================================================
--- trunk/samples/virtualEarth-sample/src/main/webapp/virtualEarth.xhtml (rev 0)
+++ trunk/samples/virtualEarth-sample/src/main/webapp/virtualEarth.xhtml 2007-07-17 02:15:07 UTC (rev 1651)
@@ -0,0 +1,82 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:c="http://java.sun.com/jstl/core"
+ xmlns:ve="http://labs.jboss.com/jbossrichfaces/ui/virtualEarth"
+ xmlns:a4j="http://richfaces.org/ajax">
+
+ <f:view contentType="text/html" >
+
+ <body>
+
+
+ <h:panelGrid columns="2">
+ <ve:virtualEarth style="width:800px;" id="gm" lat="37.97" dashboardSize="Normal" zoom="#{bean.zoom}" mapStyle="Hybrid" var="map" />
+
+
+ <!-- client side solution -->
+ <h:panelGroup>
+ Dashboard:<br />
+ <a href="javascript:void(0);" onclick="map.HideDashboard();return false;">Remove</a>
+ <a href="javascript:void(0);" onclick="map.ShowDashboard();return false;">Show</a>
+ <br /><br />
+ Type:<br/>
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Aerial);return false;">Aerial</a>
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Hybrid);return false;">Hybrid</a>
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Birdseye);return false;">Birdseye</a>
+ <br /><br />
+ Zoom:<br/>
+ <a href="javascript:void(0);" onclick="map.ZoomIn();return false;">In</a>
+ <a href="javascript:void(0);" onclick="map.ZoomOut();return false;">Out</a>
+ <br /><br />
+ <a href="javascript:void(0);" onclick="showExadel();return false;">Show Exadel Office</a>
+
+ </h:panelGroup>
+
+
+ <!-- client side solution -->
+ <h:form>
+
+ </h:form>
+
+</h:panelGrid>
+
+ <a4j:outputPanel id="zoomer">
+ <script>
+ function zoomIt() {
+ map.setZoom(#{bean.zoom});
+ }
+ </script>
+ </a4j:outputPanel>
+
+ <a4j:outputPanel>
+ <script>
+
+ function createMarker(point,html) {
+ var marker = new GMarker(point);
+ GEvent.addListener(marker, "click", function() {
+ marker.openInfoWindowHtml(html);
+ });
+ return marker;
+ }
+
+
+
+ function showExadel() {
+
+ var point = new VELatLong(37.9721046, -122.0424842834);
+ map.SetCenterAndZoom(point, 16);
+ map.SetMapStyle(VEMapStyle.Birdseye);
+
+ }
+
+
+ </script>
+ </a4j:outputPanel>
+
+ </body>
+</f:view>
+</html>
17 years, 6 months
JBoss Rich Faces SVN: r1650 - trunk/ui/virtualEarth.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-07-16 21:20:39 -0400 (Mon, 16 Jul 2007)
New Revision: 1650
Modified:
trunk/ui/virtualEarth/
Log:
Property changes on: trunk/ui/virtualEarth
___________________________________________________________________
Name: svn:ignore
+ target
17 years, 6 months
JBoss Rich Faces SVN: r1648 - trunk/ui/virtualEarth/src/test/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-07-16 21:16:45 -0400 (Mon, 16 Jul 2007)
New Revision: 1648
Added:
trunk/ui/virtualEarth/src/test/java/org/richfaces/component/VirtualEarthComponentTest.java
Log:
Added: trunk/ui/virtualEarth/src/test/java/org/richfaces/component/VirtualEarthComponentTest.java
===================================================================
--- trunk/ui/virtualEarth/src/test/java/org/richfaces/component/VirtualEarthComponentTest.java (rev 0)
+++ trunk/ui/virtualEarth/src/test/java/org/richfaces/component/VirtualEarthComponentTest.java 2007-07-17 01:16:45 UTC (rev 1648)
@@ -0,0 +1,134 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces 3.0 - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.component;
+
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIForm;
+import javax.faces.component.html.HtmlForm;
+
+import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
+import org.apache.commons.lang.StringUtils;
+
+import com.gargoylesoftware.htmlunit.html.HtmlElement;
+import com.gargoylesoftware.htmlunit.html.HtmlPage;
+import com.gargoylesoftware.htmlunit.html.HtmlScript;
+
+/**
+ * Unit test for simple Component.
+ */
+public class VirtualEarthComponentTest extends AbstractAjax4JsfTestCase {
+ private UIForm form = null;
+ private UIComponent virtualEarth = null;
+ private static Set javaScripts = new HashSet();
+
+
+
+ static {
+ javaScripts.add("org.ajax4jsf.javascript.PrototypeScript");
+ javaScripts.add("org.ajax4jsf.javascript.AjaxScript");
+ javaScripts.add("script/virtualEarth.js");
+ javaScripts.add("http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=5");
+ }
+
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public VirtualEarthComponentTest( String testName )
+ {
+ super( testName );
+ }
+
+ public void setUp() throws Exception {
+ super.setUp();
+ form = new HtmlForm();
+ facesContext.getViewRoot().getChildren().add(form);
+
+ virtualEarth = application.createComponent(UIVirtualEarth.COMPONENT_TYPE);
+ virtualEarth.setId("virtualEarth");
+
+ virtualEarth.getAttributes().put("var", "testVirtualEarth");
+
+ form.getChildren().add(virtualEarth);
+ }
+
+ public void tearDown() throws Exception {
+ super.tearDown();
+ virtualEarth = null;
+ form = null;
+ }
+
+ public void testRenderComponent() throws Exception {
+ HtmlPage renderedView = renderView();
+
+ HtmlElement htmlVirtualEarth = renderedView.getHtmlElementById(virtualEarth.getClientId(facesContext));
+
+ assertNotNull(htmlVirtualEarth);
+ assertTrue("div".equals(htmlVirtualEarth.getTagName()));
+
+ assertTrue(htmlVirtualEarth.getAttributeValue("class").contains("dr-ve"));
+ assertTrue(htmlVirtualEarth.getAttributeValue("class").contains("rich-virtualEarth"));
+
+ }
+
+ public void testRenderStyle() throws Exception {
+ HtmlPage page = renderView();
+ assertNotNull(page);
+
+ List links = page.getDocumentElement().getHtmlElementsByTagName("link");
+ assertEquals(1, links.size());
+
+ HtmlElement link = (HtmlElement) links.get(0);
+ assertTrue(link.getAttributeValue("href").contains("css/virtualEarth.xcss"));
+ }
+
+ public void testRenderScript() throws Exception {
+ HtmlPage page = renderView();
+ assertNotNull(page);
+ List scripts = page.getDocumentElement().getHtmlElementsByTagName("script");
+ for (Iterator it = scripts.iterator(); it.hasNext();) {
+ HtmlScript item = (HtmlScript) it.next();
+ String srcAttr = item.getSrcAttribute();
+
+ if (StringUtils.isNotBlank(srcAttr)) {
+ boolean found = false;
+ for (Iterator srcIt = javaScripts.iterator(); srcIt.hasNext();) {
+ String src = (String) srcIt.next();
+
+ found = srcAttr.contains(src);
+ if (found) {
+ break;
+ }
+ }
+
+ assertTrue(found);
+ }
+ }
+ }
+
+}
17 years, 6 months
JBoss Rich Faces SVN: r1647 - trunk/ui/virtualEarth/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-07-16 21:16:18 -0400 (Mon, 16 Jul 2007)
New Revision: 1647
Added:
trunk/ui/virtualEarth/src/main/java/org/richfaces/component/UIVirtualEarth.java
Log:
Added: trunk/ui/virtualEarth/src/main/java/org/richfaces/component/UIVirtualEarth.java
===================================================================
--- trunk/ui/virtualEarth/src/main/java/org/richfaces/component/UIVirtualEarth.java (rev 0)
+++ trunk/ui/virtualEarth/src/main/java/org/richfaces/component/UIVirtualEarth.java 2007-07-17 01:16:18 UTC (rev 1647)
@@ -0,0 +1,36 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces 3.0 - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIVirtualEarth extends UIComponentBase {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.VirtualEarth";
+
+ private static final String COMPONENT_FAMILY = "org.richfaces.VirtualEarth";
+
+}
17 years, 6 months
JBoss Rich Faces SVN: r1646 - in trunk/ui: virtualEarth and 43 other directories.
by richfaces-svn-commits@lists.jboss.org
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
17 years, 6 months