empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject empire-db git commit: Improvement EMPIREDB-235 Provide consistent overrides for InputControl constructors
Date Thu, 25 Feb 2016 11:49:51 GMT
Repository: empire-db
Updated Branches:
  refs/heads/master 7ae3c679c -> 914c76985


Improvement EMPIREDB-235
Provide consistent overrides for InputControl constructors


Project: http://git-wip-us.apache.org/repos/asf/empire-db/repo
Commit: http://git-wip-us.apache.org/repos/asf/empire-db/commit/914c7698
Tree: http://git-wip-us.apache.org/repos/asf/empire-db/tree/914c7698
Diff: http://git-wip-us.apache.org/repos/asf/empire-db/diff/914c7698

Branch: refs/heads/master
Commit: 914c7698541070fe8295f652d5a69e28e24e1829
Parents: 7ae3c67
Author: Rainer Döbele <doebele@apache.org>
Authored: Thu Feb 25 12:49:45 2016 +0100
Committer: Rainer Döbele <doebele@apache.org>
Committed: Thu Feb 25 12:49:45 2016 +0100

----------------------------------------------------------------------
 .../org/apache/empire/jsf2/controls/CheckboxInputControl.java  | 6 +++---
 .../org/apache/empire/jsf2/controls/RadioInputControl.java     | 6 +++---
 .../org/apache/empire/jsf2/controls/SelectInputControl.java    | 6 +++---
 .../org/apache/empire/jsf2/controls/TextAreaInputControl.java  | 6 +++---
 4 files changed, 12 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/empire-db/blob/914c7698/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/CheckboxInputControl.java
----------------------------------------------------------------------
diff --git a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/CheckboxInputControl.java
b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/CheckboxInputControl.java
index 9ab268b..4345ac1 100644
--- a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/CheckboxInputControl.java
+++ b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/CheckboxInputControl.java
@@ -35,15 +35,15 @@ public class CheckboxInputControl extends InputControl
 
     private final Class<? extends javax.faces.component.html.HtmlSelectBooleanCheckbox>
inputComponentClass;
 
-    public CheckboxInputControl(Class<? extends HtmlSelectBooleanCheckbox> inputComponentClass)
+    public CheckboxInputControl(String name, Class<? extends HtmlSelectBooleanCheckbox>
inputComponentClass)
     {
-        super(NAME);
+        super(name);
         this.inputComponentClass = inputComponentClass;
     }
 
     public CheckboxInputControl()
     {
-        this(javax.faces.component.html.HtmlSelectBooleanCheckbox.class);
+        this(NAME, javax.faces.component.html.HtmlSelectBooleanCheckbox.class);
     }
 
     @Override

http://git-wip-us.apache.org/repos/asf/empire-db/blob/914c7698/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/RadioInputControl.java
----------------------------------------------------------------------
diff --git a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/RadioInputControl.java
b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/RadioInputControl.java
index 43ce5f1..7991309 100644
--- a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/RadioInputControl.java
+++ b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/RadioInputControl.java
@@ -54,15 +54,15 @@ public class RadioInputControl extends InputControl
 
     private final Class<? extends HtmlSelectOneRadio> inputComponentClass;
 
-    public RadioInputControl(Class<? extends HtmlSelectOneRadio> inputComponentClass)
+    public RadioInputControl(String name, Class<? extends HtmlSelectOneRadio> inputComponentClass)
     {
-        super(RadioInputControl.NAME);
+        super(name);
         this.inputComponentClass = inputComponentClass;
     }
 
     public RadioInputControl()
     {
-        this(HtmlSelectOneRadio.class);
+        this(RadioInputControl.NAME, HtmlSelectOneRadio.class);
     }
 
     /* Value */

http://git-wip-us.apache.org/repos/asf/empire-db/blob/914c7698/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/SelectInputControl.java
----------------------------------------------------------------------
diff --git a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/SelectInputControl.java
b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/SelectInputControl.java
index b1804ff..803751b 100644
--- a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/SelectInputControl.java
+++ b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/SelectInputControl.java
@@ -51,15 +51,15 @@ public class SelectInputControl extends InputControl
 
     private final Class<? extends HtmlSelectOneMenu> inputComponentClass;
     
-    public SelectInputControl(Class<? extends HtmlSelectOneMenu> inputComponentClass)
+    public SelectInputControl(String name, Class<? extends HtmlSelectOneMenu> inputComponentClass)
     {
-        super(SelectInputControl.NAME);
+        super(name);
         this.inputComponentClass = inputComponentClass;
     }
 
     public SelectInputControl()
     {
-        this(HtmlSelectOneMenu.class);
+        this(SelectInputControl.NAME, HtmlSelectOneMenu.class);
     }
 
     /* for SelectTag (when no column is available) */ 

http://git-wip-us.apache.org/repos/asf/empire-db/blob/914c7698/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextAreaInputControl.java
----------------------------------------------------------------------
diff --git a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextAreaInputControl.java
b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextAreaInputControl.java
index ccbe3ca..c5dd985 100644
--- a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextAreaInputControl.java
+++ b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextAreaInputControl.java
@@ -42,15 +42,15 @@ public class TextAreaInputControl extends InputControl
     
     private Class<? extends javax.faces.component.html.HtmlInputTextarea> inputComponentClass;
 
-    public TextAreaInputControl(Class<? extends HtmlInputTextarea> inputComponentClass)
+    public TextAreaInputControl(String name, Class<? extends HtmlInputTextarea> inputComponentClass)
     {
-        super(NAME);
+        super(name);
         this.inputComponentClass = inputComponentClass;
     }
 
     public TextAreaInputControl()
     {
-        this(javax.faces.component.html.HtmlInputTextarea.class);
+        this(NAME, javax.faces.component.html.HtmlInputTextarea.class);
     }
     
     @Override


Mime
View raw message