click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r831836 - in /incubator/click/trunk/click/examples/src/org/apache/click/examples: control/exporter/ page/general/
Date Mon, 02 Nov 2009 09:53:37 GMT
Author: sabob
Date: Mon Nov  2 09:53:35 2009
New Revision: 831836

URL: http://svn.apache.org/viewvc?rev=831836&view=rev
Log:
renamed TableExportBanner to TableExportContainer instead

Added:
    incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportContainer.java
      - copied, changed from r831682, incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportBanner.java
Removed:
    incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportBanner.java
Modified:
    incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/AbstractTableExporter.java
    incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java
    incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExportTable.java
    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/general/ExcelTableExportPage.java

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/AbstractTableExporter.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/AbstractTableExporter.java?rev=831836&r1=831835&r2=831836&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/AbstractTableExporter.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/AbstractTableExporter.java
Mon Nov  2 09:53:35 2009
@@ -31,9 +31,6 @@
 import org.apache.click.util.ClickUtils;
 import org.apache.commons.lang.StringUtils;
 
-/**
- *
- */
 public abstract class AbstractTableExporter {
 
     protected String label;

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java?rev=831836&r1=831835&r2=831836&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java
Mon Nov  2 09:53:35 2009
@@ -43,9 +43,6 @@
 import org.apache.poi.hssf.usermodel.HSSFWorkbook;
 import org.apache.poi.ss.usermodel.DataFormat;
 
-/**
- *
- */
 public class ExcelTableExporter extends AbstractTableExporter {
 
     private DataFormat cellFormat;

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExportTable.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExportTable.java?rev=831836&r1=831835&r2=831836&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExportTable.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExportTable.java
Mon Nov  2 09:53:35 2009
@@ -51,7 +51,7 @@
 
     protected List excludedExportColumns;
 
-    protected TableExportBanner exporter;
+    protected TableExportContainer exportContainer;
 
     private List exportColumnList;
 
@@ -62,15 +62,15 @@
         super(name);
     }
 
-    public TableExportBanner getExporter() {
-        if (exporter == null) {
-            exporter = new TableExportBanner(this);
+    public TableExportContainer getExportContainer() {
+        if (exportContainer == null) {
+            exportContainer = new TableExportContainer(this);
         }
-        return exporter;
+        return exportContainer;
     }
 
-    public void setExporter(TableExportBanner exporter) {
-        this.exporter = exporter;
+    public void setExportContainer(TableExportContainer exportContainer) {
+        this.exportContainer = exportContainer;
     }
 
     /**
@@ -178,20 +178,20 @@
     @Override
     public void onInit() {
         super.onInit();
-        getExporter().onInit();
+        getExportContainer().onInit();
     }
 
     @Override
     public void onRender() {
         super.onRender();
-        getExporter().onRender();
+        getExportContainer().onRender();
     }
 
     @Override
     public boolean onProcess() {
         boolean continueProcessing = super.onProcess();
-        TableExportBanner tableExporter = getExporter();
-        if (!tableExporter.onProcess()) {
+        TableExportContainer exportContainer = getExportContainer();
+        if (!exportContainer.onProcess()) {
             continueProcessing = false;
         }
         return continueProcessing;
@@ -201,7 +201,7 @@
         if (getExportAttachment() == EXPORTER_ATTACHED) {
             if (getExportBannerPosition() == POSITION_BOTH ||
                 getExportBannerPosition() == POSITION_TOP) {
-                getExporter().render(buffer);
+                getExportContainer().render(buffer);
             }
         }
 
@@ -210,7 +210,7 @@
         if (getExportAttachment() == EXPORTER_ATTACHED) {
             if (getExportBannerPosition() == POSITION_BOTH ||
                 getExportBannerPosition() == POSITION_BOTTOM) {
-                getExporter().render(buffer);
+                getExportContainer().render(buffer);
             }
         }
     }
@@ -225,7 +225,7 @@
                 buffer.append(getColumnList().size() - getExcludedExportColumns().size());
                 buffer.append("\">");
 
-                getExporter().render(buffer);
+                getExportContainer().render(buffer);
 
                 buffer.append("</td></tr>\n");
                 buffer.append("</tbody>\n");
@@ -243,7 +243,7 @@
                 buffer.append(getColumnList().size() - getExcludedExportColumns().size());
                 buffer.append("\">");
 
-                getExporter().render(buffer);
+                getExportContainer().render(buffer);
 
                 buffer.append("</td></tr>\n");
                 buffer.append("</tbody>\n");

Copied: incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportContainer.java
(from r831682, incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportBanner.java)
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportContainer.java?p2=incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportContainer.java&p1=incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportBanner.java&r1=831682&r2=831836&rev=831836&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportBanner.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportContainer.java
Mon Nov  2 09:53:35 2009
@@ -26,10 +26,7 @@
 import org.apache.click.control.Renderable;
 import org.apache.click.util.HtmlStringBuffer;
 
-/**
- *
- */
-public class TableExportBanner implements Renderable {
+public class TableExportContainer implements Renderable {
 
     private List<AbstractTableExporter> exporters = new ArrayList<AbstractTableExporter>();
 
@@ -37,7 +34,7 @@
 
     private ExportTable table;
 
-    public TableExportBanner(ExportTable table) {
+    public TableExportContainer(ExportTable table) {
         this.table = table;
     }
 
@@ -117,7 +114,7 @@
     /**
      * Render the table export banner.
      * <p/>
-     * See the <tt>TableExportBanner.properies</tt> for the HTML template:
+     * See the <tt>TableExportContainer.properies</tt> for the HTML template:
      * <tt>table-export-banner</tt>.
      *
      * @param buffer the StringBuffer to render the paging controls to

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/general/ExcelTableExportPage.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/general/ExcelTableExportPage.java?rev=831836&r1=831835&r2=831836&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/general/ExcelTableExportPage.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/general/ExcelTableExportPage.java
Mon Nov  2 09:53:35 2009
@@ -95,7 +95,7 @@
     private void setupExporter(ExportTable table) {
         // Setup table exporting
         ExcelTableExporter excel = new ExcelTableExporter("Excel", "/assets/images/page_excel.png");
-        table.getExporter().add(excel);
+        table.getExportContainer().add(excel);
 
         // Excluding the action column ensures the actions are not exported to
         // Excel



Mime
View raw message