[jboss-svn-commits] JBL Code SVN: r34135 - in labs/jbossrules/trunk/drools-factconstraint/src/main/java/org/drools/factconstraints/client/customform: predefined and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Jul 23 08:30:09 EDT 2010
Author: eaa
Date: 2010-07-23 08:30:08 -0400 (Fri, 23 Jul 2010)
New Revision: 34135
Modified:
labs/jbossrules/trunk/drools-factconstraint/src/main/java/org/drools/factconstraints/client/customform/CustomFormConfiguration.java
labs/jbossrules/trunk/drools-factconstraint/src/main/java/org/drools/factconstraints/client/customform/predefined/DefaultCustomFormImplementation.java
Log:
GUVNOR-562: Allow the addition of custom forms for populating constraint's fields in Guided Editor
- Added Width and Height as CustomFormConfiguration attributes
Modified: labs/jbossrules/trunk/drools-factconstraint/src/main/java/org/drools/factconstraints/client/customform/CustomFormConfiguration.java
===================================================================
--- labs/jbossrules/trunk/drools-factconstraint/src/main/java/org/drools/factconstraints/client/customform/CustomFormConfiguration.java 2010-07-23 11:22:37 UTC (rev 34134)
+++ labs/jbossrules/trunk/drools-factconstraint/src/main/java/org/drools/factconstraints/client/customform/CustomFormConfiguration.java 2010-07-23 12:30:08 UTC (rev 34135)
@@ -17,4 +17,10 @@
String getCustomFormURL();
void setCustomFormURL(String url);
+ int getCustomFormHeight();
+ void setCustomFormHeight(int height);
+
+ int getCustomFormWidth();
+ void setCustomFormWidth(int width);
+
}
Modified: labs/jbossrules/trunk/drools-factconstraint/src/main/java/org/drools/factconstraints/client/customform/predefined/DefaultCustomFormImplementation.java
===================================================================
--- labs/jbossrules/trunk/drools-factconstraint/src/main/java/org/drools/factconstraints/client/customform/predefined/DefaultCustomFormImplementation.java 2010-07-23 11:22:37 UTC (rev 34134)
+++ labs/jbossrules/trunk/drools-factconstraint/src/main/java/org/drools/factconstraints/client/customform/predefined/DefaultCustomFormImplementation.java 2010-07-23 12:30:08 UTC (rev 34135)
@@ -9,6 +9,8 @@
*/
public class DefaultCustomFormImplementation implements CustomFormConfiguration, Serializable{
+ private int width = 200;
+ private int height = 200;
private String factType;
private String fieldName;
private String url;
@@ -37,4 +39,20 @@
this.url = url;
}
+ public int getCustomFormHeight() {
+ return height;
+ }
+
+ public void setCustomFormHeight(int height) {
+ this.height = height;
+ }
+
+ public int getCustomFormWidth() {
+ return width;
+ }
+
+ public void setCustomFormWidth(int width) {
+ this.width = width;
+ }
+
}
More information about the jboss-svn-commits
mailing list