Permalink
Browse files

initial commit

  • Loading branch information...
andersonfreitas committed Jul 21, 2010
0 parents commit bd45894588441ab7ad0fe4a2434a24950655385d
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="var" path="VAADIN_DOWNLOAD/gwt-user/2.0.3/gwt-user.jar"/>
+ <classpathentry kind="var" path="VAADIN_DOWNLOAD/gwt-dev/2.0.3/gwt-dev.jar"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/JVM 1.6.0 (MacOS X Default)">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.java"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.web"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/GWT"/>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
@@ -0,0 +1,5 @@
+*.class
+WebContent/VAADIN/*
+build/*
+.DS_STORE
+gwt/*
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>vaadin-masked-textfield</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.vaadin.integration.eclipse.widgetsetBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ <nature>com.vaadin.integration.eclipse.widgetsetNature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
+ <attributes>
+ <attribute name="hide" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
@@ -0,0 +1,6 @@
+#Tue Jul 20 22:23:49 BRT 2010
+com.vaadin.integration.eclipse.widgetsetBuildsSuspended=true
+com.vaadin.integration.eclipse.widgetsetCompilationEta=111758
+com.vaadin.integration.eclipse.widgetsetDirty=true
+com.vaadin.integration.eclipse.widgetsetParallelism=2
+eclipse.preferences.version=1
@@ -0,0 +1,7 @@
+#Tue Jul 06 20:36:29 BRT 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="vaadin-masked-textfield">
+ <wb-resource deploy-path="/" source-path="/WebContent"/>
+ <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
+ <property name="java-output-path" value="/WidgetTests/build/classes"/>
+ <property name="context-root" value="vaadin-masked-textfield"/>
+ </wb-module>
+</project-modules>
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="Apache Tomcat v6.0"/>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.web"/>
+ <fixed facet="com.vaadin.integration.eclipse.core"/>
+ <installed facet="jst.java" version="6.0"/>
+ <installed facet="jst.web" version="2.5"/>
+ <installed facet="wst.jsdt.web" version="1.0"/>
+ <installed facet="com.vaadin.integration.eclipse.core" version="1.0"/>
+</faceted-project>
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
@@ -0,0 +1 @@
+Window
54 README
@@ -0,0 +1,54 @@
+MaskedTextField for Vaadin
+
+Current Valid masks:
+
+# - any number
+U - upper-case letter
+L - lower-case letter
+? - any letter
+A - any number or character
+* - anything
+H - hex sign (0-9, a-f or A-F)
+' - Escape character, used to escape any of the special formatting characters.
+~ - +/- sign
+
+TODO:
+ - ignore "_" when getting values
+ - Demo App getValue()
+ - setValidChars(",. ")
+ - getValue() - with mask and no _
+ - getLiteralValue() - no mask
+ - Tab try it in the Demo App
+ - Deploy demo app somewhere
+ - test under IE6, IE7 & IE8, Firefox 3
+
+Known issues:
+ TAB and ESC keys aren't working on Firefox
+
+FUTURE ROADMAP:
+
+Zero Mode - mask: TR-0000
+TR-0000 - initialized with 0
+TR-0001
+TR-0011
+TR-0111
+TR-1111
+
+Number Mode - mask: NNNNNNNN
+ 0 - initialized with 0
+ 1
+ 10
+ 100
+ 1.000
+ 10.000
+100.000
+
+Currency mode - mask: R$ CCCCCCCCCC
+ R$ 0,00 - initialized with 0
+ R$ 0,05 - first type
+ R$ 0,55
+ R$ 5,55
+ R$ 55,55
+ R$ 555,55
+ R$ 5.555,55
+R$ 55.555,55
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Binary file not shown.
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
+ <display-name>Vaadin MaskedTextField Demo Application</display-name>
+ <context-param>
+ <description>Vaadin production mode</description>
+ <param-name>productionMode</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <servlet>
+ <servlet-name>Vaadin MaskedTextField Demo Application</servlet-name>
+ <servlet-class>
+ com.vaadin.terminal.gwt.server.ApplicationServlet</servlet-class>
+ <init-param>
+ <description>
+ Vaadin application class to start</description>
+ <param-name>application</param-name>
+ <param-value>com.andersonfreitas.vaadin.maskedtextfield.DemoApplication</param-value>
+ </init-param>
+ <init-param>
+ <description>
+ Application widgetset</description>
+ <param-name>widgetset</param-name>
+ <param-value>com.andersonfreitas.vaadin.maskedtextfield.DemoApplicationWidgetset</param-value>
+ </init-param>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Vaadin MaskedTextField Demo Application</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ <welcome-file>index.htm</welcome-file>
+ <welcome-file>index.jsp</welcome-file>
+ <welcome-file>default.html</welcome-file>
+ <welcome-file>default.htm</welcome-file>
+ <welcome-file>default.jsp</welcome-file>
+ </welcome-file-list>
+</web-app>
Oops, something went wrong.

0 comments on commit bd45894

Please sign in to comment.