<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Getting Started</title><link>https://sourceforge.net/p/simplevalidation/wiki/Getting%2520Started/</link><description>Recent changes to Getting Started</description><atom:link href="https://sourceforge.net/p/simplevalidation/wiki/Getting%20Started/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 03 Jan 2015 21:03:20 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/simplevalidation/wiki/Getting%20Started/feed" rel="self" type="application/rss+xml"/><item><title>Getting Started modified by Paul Russell</title><link>https://sourceforge.net/p/simplevalidation/wiki/Getting%2520Started/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -32,4 +32,4 @@
          }
      }

-A full working example is included with the source code, which I would urge you to examine. SimpleValidator is mostly self-contained, but you will need to add Log4J to your projects dependencies. If you use Maven, a sample POM is added to the program sourcecode for ease of use. Otherwise please download Log4j and add it to your programs libraries.
+A full working example is included with the source code, which I would urge you to examine. SimpleValidator is mostly self-contained, but you will need to add Log4J to your projects dependencies. If you use Maven, a sample POM is added to the program sourcecode for ease of use. Otherwise please download Log4j and add it to your programs' libraries.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paul Russell</dc:creator><pubDate>Sat, 03 Jan 2015 21:03:20 -0000</pubDate><guid>https://sourceforge.net2eb67e1ef1890fada91a3084e656501b8e5c1cb0</guid></item><item><title>Getting Started modified by Paul Russell</title><link>https://sourceforge.net/p/simplevalidation/wiki/Getting%2520Started/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -32,4 +32,4 @@
          }
      }

-A full working example is included with the source code, which I would urge you to examine.
+A full working example is included with the source code, which I would urge you to examine. SimpleValidator is mostly self-contained, but you will need to add Log4J to your projects dependencies. If you use Maven, a sample POM is added to the program sourcecode for ease of use. Otherwise please download Log4j and add it to your programs libraries.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paul Russell</dc:creator><pubDate>Sat, 03 Jan 2015 21:02:48 -0000</pubDate><guid>https://sourceforge.net7e4e93cea3aebcc8ec6a43c686cb9eacb5adaccd</guid></item><item><title>Getting Started modified by Paul Russell</title><link>https://sourceforge.net/p/simplevalidation/wiki/Getting%2520Started/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Simply create a textfield, and make each GUI class implement ValidationCandidate:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;  &lt;span class="c1"&gt;//your Dialogs must implement this interface&lt;/span&gt;
  &lt;span class="n"&gt;public&lt;/span&gt; &lt;span class="n"&gt;class&lt;/span&gt; &lt;span class="n"&gt;ExampleGUI&lt;/span&gt; &lt;span class="n"&gt;implements&lt;/span&gt; &lt;span class="n"&gt;ValidationCandidate&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

     &lt;span class="n"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="n"&gt;begin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Stage&lt;/span&gt; &lt;span class="n"&gt;primaryStage&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;VBox&lt;/span&gt; &lt;span class="n"&gt;vBox&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;VBox&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

        &lt;span class="c1"&gt;//create a textfield&lt;/span&gt;
        &lt;span class="n"&gt;TextField&lt;/span&gt; &lt;span class="n"&gt;textField&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;TextField&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

        &lt;span class="c1"&gt;//validate it&lt;/span&gt;
        &lt;span class="n"&gt;SimpleValidatorDecorator&lt;/span&gt; &lt;span class="n"&gt;simpleValidatorDecorator&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;SimpleValidatorDecorator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;this&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="n"&gt;SimpleValidator&lt;/span&gt; &lt;span class="n"&gt;validator&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;TextFieldValidator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;textField&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;simpleValidatorDecorator&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="n"&gt;validator&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;MinimumFieldLengthValidator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt; &lt;span class="c1"&gt;//add the various validations, as needed&lt;/span&gt;
        &lt;span class="n"&gt;validator&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;MaximumFieldLengthValidator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
        &lt;span class="n"&gt;simpleValidatorDecorator&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;addValidator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;validator&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="c1"&gt;//that's all!&lt;/span&gt;

        &lt;span class="n"&gt;vBox&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;getChildren&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="n"&gt;addAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;textField&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="n"&gt;Scene&lt;/span&gt; &lt;span class="n"&gt;newScene&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;Scene&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;vBox&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="n"&gt;newScene&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;getStylesheets&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="n"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"/css/stylesheet.css"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="n"&gt;primaryStage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;setScene&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;newScene&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="n"&gt;primaryStage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;show&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
     &lt;span class="p"&gt;}&lt;/span&gt;

     &lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="n"&gt;Override&lt;/span&gt;
     &lt;span class="n"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="n"&gt;allGUIFieldsAreValid&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
         &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"All text boxes are valid."&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; 
        &lt;span class="c1"&gt;//SimpleValidation will call this method when *all* the added textfields validate&lt;/span&gt;
     &lt;span class="p"&gt;}&lt;/span&gt;
 &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;A full working example is included with the source code, which I would urge you to examine.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paul Russell</dc:creator><pubDate>Sat, 03 Jan 2015 18:56:30 -0000</pubDate><guid>https://sourceforge.nete7a7842d063eb1e4fbb50e40d91fa5dc6bd54b91</guid></item></channel></rss>