consistent initialization of TextFieldNFix
authorAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Fri, 8 Jun 2018 11:26:48 +0000 (13:26 +0200)
committerAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Fri, 8 Jun 2018 11:26:48 +0000 (13:26 +0200)
src/main/java/eu/etaxonomy/cdm/vaadin/component/TextFieldNFix.java

index ef45d4ad245eb8ec8ec00ebed52a1e925774afe5..a5e39d653916d6708d9bf45b5349db168987b0d5 100644 (file)
@@ -36,6 +36,7 @@ public class TextFieldNFix extends TextField {
      */
     public TextFieldNFix(String format) {
         super(format);
+        init();
     }
 
 
@@ -45,7 +46,7 @@ public class TextFieldNFix extends TextField {
      */
     public TextFieldNFix() {
         super();
-        setNullSettingAllowed(true);
+        init();
     }
 
 
@@ -55,6 +56,7 @@ public class TextFieldNFix extends TextField {
      */
     public TextFieldNFix(Property dataSource) {
         super(dataSource);
+        init();
     }
 
 
@@ -65,6 +67,7 @@ public class TextFieldNFix extends TextField {
      */
     public TextFieldNFix(String caption, Property dataSource) {
         super(caption, dataSource);
+        init();
     }
 
 
@@ -75,7 +78,16 @@ public class TextFieldNFix extends TextField {
      */
     public TextFieldNFix(String caption, String value) {
         super(caption, value);
-        // TODO Auto-generated constructor stub
+        init();
+    }
+
+
+
+    /**
+     *
+     */
+    protected void init() {
+        setNullSettingAllowed(true);
     }