labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simo...@apache.org
Subject svn commit: r833050 - /labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/BeanStyle.java
Date Thu, 05 Nov 2009 14:16:15 GMT
Author: simoneg
Date: Thu Nov  5 14:15:58 2009
New Revision: 833050

URL: http://svn.apache.org/viewvc?rev=833050&view=rev
Log:
LABS-207: Outer div for showbeans

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

Modified: labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/BeanStyle.java
URL: http://svn.apache.org/viewvc/labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/BeanStyle.java?rev=833050&r1=833049&r2=833050&view=diff
==============================================================================
--- labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/BeanStyle.java
(original)
+++ labs/magma/trunk/website-beansview/src/main/java/org/apache/magma/website/beansview/BeanStyle.java
Thu Nov  5 14:15:58 2009
@@ -79,7 +79,9 @@
 	
 	public void generate() {
 		buff = new StringBuilder();
+		openOuterContainer();
 		createTable(root);
+		closeOuterContainer();
 	}
 	
 	public String getTemplate() {
@@ -277,5 +279,15 @@
 	public String getStyleKey() {
 		return "CC" + this.withCustomClasses + "MF" + this.maxFieldSize;
 	}
+	
+	protected void openOuterContainer() {
+		buff.append("<div class=\"ShowBean ");
+		buff.append(myclass.getSimpleName());
+		buff.append("\">");
+	}
+	
+	protected void closeOuterContainer() {
+		buff.append("</div>");
+	}
 
 }



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


Mime
View raw message