You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by lt...@apache.org on 2008/08/01 21:41:02 UTC

svn commit: r681799 - /maven/shared/trunk/maven-reporting-impl/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java

Author: ltheussl
Date: Fri Aug  1 12:41:02 2008
New Revision: 681799

URL: http://svn.apache.org/viewvc?rev=681799&view=rev
Log:
Add a method to start a table with given cell justif

Modified:
    maven/shared/trunk/maven-reporting-impl/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java

Modified: maven/shared/trunk/maven-reporting-impl/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-reporting-impl/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java?rev=681799&r1=681798&r2=681799&view=diff
==============================================================================
--- maven/shared/trunk/maven-reporting-impl/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java (original)
+++ maven/shared/trunk/maven-reporting-impl/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java Fri Aug  1 12:41:02 2008
@@ -220,8 +220,23 @@
      */
     protected void startTable()
     {
+        startTable( new int[] {Sink.JUSTIFY_LEFT}, false );
+    }
+
+    /**
+     * Convenience method to wrap the table start in the current sink.
+     *
+     * @param justification the justification of table cells.
+     * @param grid whether to draw a grid around cells.
+     *
+     * @see Sink#table()
+     * @see Sink#tableRows(int[],boolean)
+     * @since 2.1
+     */
+    protected void startTable( int[] justification, boolean grid )
+    {
         sink.table();
-        sink.tableRows( new int[] {Sink.JUSTIFY_LEFT}, false );
+        sink.tableRows( justification, grid );
     }
 
     /**