[seam-commits] Seam SVN: r14165 - branches/community/Seam_2_3/jboss-seam-excel/src/main/java/org/jboss/seam/excel/ui.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Sep 5 08:26:40 EDT 2011
Author: manaRH
Date: 2011-09-05 08:26:39 -0400 (Mon, 05 Sep 2011)
New Revision: 14165
Modified:
branches/community/Seam_2_3/jboss-seam-excel/src/main/java/org/jboss/seam/excel/ui/UIWorkbook.java
Log:
JBSEAM-4664 - adding disposition attribute to Excel workbook
Modified: branches/community/Seam_2_3/jboss-seam-excel/src/main/java/org/jboss/seam/excel/ui/UIWorkbook.java
===================================================================
--- branches/community/Seam_2_3/jboss-seam-excel/src/main/java/org/jboss/seam/excel/ui/UIWorkbook.java 2011-09-05 12:26:08 UTC (rev 14164)
+++ branches/community/Seam_2_3/jboss-seam-excel/src/main/java/org/jboss/seam/excel/ui/UIWorkbook.java 2011-09-05 12:26:39 UTC (rev 14165)
@@ -53,6 +53,7 @@
private Boolean workbookProtected;
private String exportKey;
private String filename;
+ private String disposition;
public String getFilename()
{
@@ -330,6 +331,11 @@
DocumentData documentData = new ByteArrayDocumentData(baseName, type, bytes);
documentData.setFilename(getFilename());
+ String dispositionValue = getDisposition().toString();
+ if (dispositionValue != null)
+ {
+ documentData.setDisposition(dispositionValue);
+ }
if (getExportKey() != null)
{
@@ -426,4 +432,13 @@
this.workbookProtected = workbookProtected;
}
+ public Boolean getDisposition()
+ {
+ return (Boolean) valueOf("disposition", disposition);
+ }
+
+ public void setDisposition(String disposition)
+ {
+ this.disposition = disposition;
+ }
}
More information about the seam-commits
mailing list