[richfaces-svn-commits] JBoss Rich Faces SVN: r4940 - in trunk/sandbox/ui: combobox and 24 other directories.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Thu Dec 20 12:36:49 EST 2007
Author: abelevich
Date: 2007-12-20 12:36:49 -0500 (Thu, 20 Dec 2007)
New Revision: 4940
Added:
trunk/sandbox/ui/combobox/
trunk/sandbox/ui/combobox/pom.xml
trunk/sandbox/ui/combobox/src/
trunk/sandbox/ui/combobox/src/main/
trunk/sandbox/ui/combobox/src/main/config/
trunk/sandbox/ui/combobox/src/main/config/component/
trunk/sandbox/ui/combobox/src/main/config/component/combobox.xml
trunk/sandbox/ui/combobox/src/main/java/
trunk/sandbox/ui/combobox/src/main/java/org/
trunk/sandbox/ui/combobox/src/main/java/org/richfaces/
trunk/sandbox/ui/combobox/src/main/java/org/richfaces/component/
trunk/sandbox/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java
trunk/sandbox/ui/combobox/src/main/java/org/richfaces/renderkit/
trunk/sandbox/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
trunk/sandbox/ui/combobox/src/main/resources/
trunk/sandbox/ui/combobox/src/main/resources/org/
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
trunk/sandbox/ui/combobox/src/main/templates/
trunk/sandbox/ui/combobox/src/main/templates/README
trunk/sandbox/ui/combobox/src/test/
trunk/sandbox/ui/combobox/src/test/java/
trunk/sandbox/ui/combobox/src/test/java/org/
trunk/sandbox/ui/combobox/src/test/java/org/richfaces/
trunk/sandbox/ui/combobox/src/test/java/org/richfaces/sandbox/
trunk/sandbox/ui/combobox/src/test/java/org/richfaces/sandbox/ui/
trunk/sandbox/ui/combobox/src/test/java/org/richfaces/sandbox/ui/component/
trunk/sandbox/ui/combobox/src/test/java/org/richfaces/sandbox/ui/component/JSFComponentTest.java
Log:
initial commit for combobox
Added: trunk/sandbox/ui/combobox/pom.xml
===================================================================
--- trunk/sandbox/ui/combobox/pom.xml (rev 0)
+++ trunk/sandbox/ui/combobox/pom.xml 2007-12-20 17:36:49 UTC (rev 4940)
@@ -0,0 +1,50 @@
+<?xml version="1.0"?><project>
+ <parent>
+ <artifactId>ui</artifactId>
+ <groupId>org.richfaces.sandbox</groupId>
+ <version>3.2.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.sandbox.ui</groupId>
+ <artifactId>combobox</artifactId>
+ <name>combobox</name>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces.sandbox.ui</prefix>
+ <taglib>
+ <shortName>combobox</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Added: trunk/sandbox/ui/combobox/src/main/config/component/combobox.xml
===================================================================
--- trunk/sandbox/ui/combobox/src/main/config/component/combobox.xml (rev 0)
+++ trunk/sandbox/ui/combobox/src/main/config/component/combobox.xml 2007-12-20 17:36:49 UTC (rev 4940)
@@ -0,0 +1,87 @@
+<?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.ComboBox</name>
+ <family>org.richfaces.ComboBox</family>
+ <classname>
+ org.richfaces.component.html.HtmlComboBox
+ </classname>
+ <superclass>org.richfaces.component.UIComboBox</superclass>
+ <test>
+ <classname>org.richfaces.component.html.HtmlComboBoxBoxComponentTest</classname>
+ <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
+ </test>
+ <description>
+ <![CDATA[ ]]>
+ </description>
+
+ <renderer generate="false" override="false">
+ <name>org.richfaces.ComboBoxBox</name>
+ <classname>
+ org.richfaces.renderkit.html.ComboBoxBoxRenderer
+ </classname>
+ </renderer>
+
+ <tag>
+ <name>ComboBox</name>
+ <classname>org.richfaces.taglib.ComboBoxBoxTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ &ui_component_attributes;
+ &ui_component_attributes;
+ &ui_output_attributes;
+ &ui_data_attributes;
+ &ajax_component_attributes;
+ &ui_for_attribute;
+ &html_universal_attributes;
+ &html_table_attributes;
+
+ <property>
+ <name>immediate</name>
+ <classname>boolean</classname>
+ <description>
+ A flag indicating that this component value must be converted and validated immediately (that is, during Apply Request Values phase), rather than waiting until a Process Validations phase.
+ </description>
+ </property>
+ <property required="true">
+ <name>width</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Width of the pop-up window in pixels
+ </description>
+ <defaultvalue>"200"</defaultvalue>
+ </property>
+ <property required="true">
+ <name>height</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Height of the pop-up window in pixels
+ </description>
+ <defaultvalue>"200"</defaultvalue>
+ </property>
+ <property hidden="true">
+ <name>value</name>
+ <classname>java.lang.Object</classname>
+ <description>
+ Supported types see JSF Spec 4.1.3
+ </description>
+ </property>
+ <property>
+ <name>shadowOpacity</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Attribute defines shadow opacity for suggestion content
+ </description>
+ </property>
+ <property>
+ <name>shadowDepth</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Pop-up shadow depth for suggestion content
+ </description>
+ </property>
+ </component>
+</components>
Added: trunk/sandbox/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java
===================================================================
--- trunk/sandbox/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java (rev 0)
+++ trunk/sandbox/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java 2007-12-20 17:36:49 UTC (rev 4940)
@@ -0,0 +1,30 @@
+/**
+ *
+ */
+package org.richfaces.component;
+
+import javax.faces.component.UIData;
+
+import org.ajax4jsf.component.AjaxComponent;
+import org.ajax4jsf.event.AjaxListener;
+import org.ajax4jsf.event.AjaxSource;
+
+/**
+ * UI implementation of ComboBox component
+ * @author Anton Belevich
+ *
+ */
+public abstract class UIComboBox extends UIData implements AjaxComponent, AjaxSource {
+
+ public void addAjaxListener(final AjaxListener listener) {
+ addFacesListener(listener);
+ }
+
+ public void removeAjaxListener(final AjaxListener listener) {
+ removeFacesListener(listener);
+ }
+
+ public AjaxListener[] getAjaxListeners() {
+ return (AjaxListener[])getFacesListeners(AjaxListener.class);
+ }
+}
Added: trunk/sandbox/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
===================================================================
--- trunk/sandbox/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java (rev 0)
+++ trunk/sandbox/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2007-12-20 17:36:49 UTC (rev 4940)
@@ -0,0 +1,14 @@
+package org.richfaces.renderkit;
+
+import javax.faces.component.UIComponent;
+
+import org.ajax4jsf.renderkit.AjaxComponentRendererBase;
+import org.richfaces.component.UIComboBox;
+
+public class ComboBoxBaseRenderer extends AjaxComponentRendererBase {
+
+ protected Class<? extends UIComponent> getComponentClass() {
+ return UIComboBox.class;
+ }
+
+}
Added: trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
===================================================================
--- trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss (rev 0)
+++ trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2007-12-20 17:36:49 UTC (rev 4940)
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?>
\ No newline at end of file
Added: trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
===================================================================
Added: trunk/sandbox/ui/combobox/src/main/templates/README
===================================================================
Added: trunk/sandbox/ui/combobox/src/test/java/org/richfaces/sandbox/ui/component/JSFComponentTest.java
===================================================================
--- trunk/sandbox/ui/combobox/src/test/java/org/richfaces/sandbox/ui/component/JSFComponentTest.java (rev 0)
+++ trunk/sandbox/ui/combobox/src/test/java/org/richfaces/sandbox/ui/component/JSFComponentTest.java 2007-12-20 17:36:49 UTC (rev 4940)
@@ -0,0 +1,53 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * 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.sandbox.ui.component;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+import javax.faces.component.UIComponent;
+
+/**
+ * Unit test for simple Component.
+ */
+public class JSFComponentTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public JSFComponentTest( String testName )
+ {
+ super( testName );
+ }
+
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testComponent()
+ {
+ assertTrue( true );
+ }
+}
More information about the richfaces-svn-commits
mailing list