You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2009/03/10 18:24:37 UTC

svn commit: r752169 - in /labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview: SmartForm.java SmartList.java

Author: simoneg
Date: Tue Mar 10 17:24:36 2009
New Revision: 752169

URL: http://svn.apache.org/viewvc?rev=752169&view=rev
Log:
LABS-311 : header is not a valid name for a private field anymore :)

Modified:
    labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/SmartForm.java
    labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/SmartList.java

Modified: labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/SmartForm.java
URL: http://svn.apache.org/viewvc/labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/SmartForm.java?rev=752169&r1=752168&r2=752169&view=diff
==============================================================================
--- labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/SmartForm.java (original)
+++ labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/SmartForm.java Tue Mar 10 17:24:36 2009
@@ -49,8 +49,8 @@
 	private List<FormAction> actions = new ArrayList<FormAction>();
 	private FormAction defaultAction = null;
 	
-	private HtmlProducer header = null;
-	private HtmlProducer footer = null;
+	private HtmlProducer prodHeader = null;
+	private HtmlProducer prodFooter = null;
 	
 	protected Map<String, String[]> allParams = null;
 	
@@ -69,12 +69,12 @@
 
 	public SmartForm(Object bean, String next, HtmlProducer header) {
 		this(bean, next);
-		this.header = header;
+		this.prodHeader = header;
 	}
 	
 	public SmartForm(Object bean, String next, HtmlProducer header, HtmlProducer footer) {
 		this(bean, next, header);
-		this.footer = footer;
+		this.prodFooter = footer;
 	}
 
 	public SmartForm(Object bean, String next, HtmlProducer header, HtmlProducer footer, ViewCustomizer filter) {
@@ -111,13 +111,13 @@
 	}
 	
 	public HtmlProducer doShow() {
-		parametrize(header);
-		parametrize(footer);
+		parametrize(prodHeader);
+		parametrize(prodFooter);
 		BeanFormProducer producer = new BeanFormProducer(this.bean, errors, this.filter, getMyCode());
 		producer.setActions(this.actions);
 		producer.setLists(this.lists);
-		producer.compoundWith(header, CompoundType.BEFORE);
-		producer.compoundWith(footer, CompoundType.AFTER);
+		producer.compoundWith(prodHeader, CompoundType.BEFORE);
+		producer.compoundWith(prodFooter, CompoundType.AFTER);
 		return producer;
 	}
 	
@@ -235,12 +235,12 @@
 	}
 
 	public SmartForm setHeader(HtmlProducer header) {
-		this.header = header;
+		this.prodHeader = header;
 		return this;
 	}
 	
 	public SmartForm setFooter(HtmlProducer footer) {
-		this.footer = footer;
+		this.prodFooter = footer;
 		return this;
 	}
 	

Modified: labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/SmartList.java
URL: http://svn.apache.org/viewvc/labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/SmartList.java?rev=752169&r1=752168&r2=752169&view=diff
==============================================================================
--- labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/SmartList.java (original)
+++ labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/SmartList.java Tue Mar 10 17:24:36 2009
@@ -31,8 +31,8 @@
 	
 	private Set<String> sortables = null;
 	
-	private HtmlProducer header = null;
-	private HtmlProducer footer = null;
+	private HtmlProducer prodHeader = null;
+	private HtmlProducer prodFooter = null;
 	
 	private ViewCustomizer filter = null;	
 
@@ -129,8 +129,8 @@
 			}
 		}
 		List list = db.query(myclass, start, len, acquery.toString(), this.queryParams);
-		parametrize(header);
-		parametrize(footer);
+		parametrize(prodHeader);
+		parametrize(prodFooter);
 		SmartListProducer producer = new SmartListProducer(myclass, list);
 		producer.setLen(len);
 		producer.setStart(start);
@@ -141,8 +141,8 @@
 		producer.setLink("../" + this.linkUrl);
 		producer.setFilter(filter);
 		producer.setCaption(caption).setSummary(summary);
-		producer.compoundWith(header, CompoundType.BEFORE);
-		producer.compoundWith(footer, CompoundType.AFTER);
+		producer.compoundWith(prodHeader, CompoundType.BEFORE);
+		producer.compoundWith(prodFooter, CompoundType.AFTER);
 		return producer;
 	}
 	
@@ -197,12 +197,12 @@
 	
 	
 	public SmartList setHeader(HtmlProducer header) {
-		this.header = header;
+		this.prodHeader = header;
 		return this;
 	}
 	
 	public SmartList setFooter(HtmlProducer footer) {
-		this.footer = footer;
+		this.prodFooter = footer;
 		return this;
 	}
 	



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org