com.extentech.ExtenXLS.web
Class CellHandlingBean

java.lang.Object
  extended by com.extentech.ExtenXLS.web.CellHandlingBean

public class CellHandlingBean
extends java.lang.Object

CellHandlingBean is a class to ease some of the rote inputting and looking up of parameters in relation to functions within the WorkBookUpdateBean. It's primary purpose is to generate an array of CellHandles from parameters passed in, and to get all possible parameter/value changes out of the map (parsed URI string); ------------------------------------------------------------

Author:
John :: [ Oct 20, 2007 ] :: Copyright ©2006 Extentech Inc.

Method Summary
 boolean commitStyleChanges()
          Commits any non-null style changes to the workbook.
 boolean commitValueChanges()
          Commits any value changes to the cell.
 java.lang.String getBackgroundColor()
           
 java.lang.String getCellRange()
           
 CellHandle[] getCells()
          Get all the cellHandles referenced in this CellInfo.
 java.lang.String getColor()
           
 java.lang.String getFontFamily()
           
 java.lang.String getFontSize()
           
 java.lang.String getFontWeight()
           
 java.lang.String getFormatPattern()
           
 java.lang.String getLink()
           
 java.lang.String getSheetName()
           
 java.lang.String getTextAlign()
           
 java.lang.String getTextDecoration()
           
 void setBackgroundColor(java.lang.String backgroundColor)
           
 void setCellRange(java.lang.String cellRange)
           
 void setColor(java.lang.String color)
           
 void setFontFamily(java.lang.String fontFamily)
           
 void setFontSize(java.lang.String fontSize)
           
 void setFontWeight(java.lang.String fontWeight)
           
 void setFormatPattern(java.lang.String formatPattern)
           
 void setLink(java.lang.String lnk)
           
 void setSheetName(java.lang.String sheetName)
           
 void setTextAlign(java.lang.String textAlign)
           
 void setTextDecoration(java.lang.String textDecoration)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

commitValueChanges

public boolean commitValueChanges()
Commits any value changes to the cell. This includes links that are set on the cell. Currently we are defaulting to add underlines to links.


commitStyleChanges

public boolean commitStyleChanges()
Commits any non-null style changes to the workbook. TODO: Currently the code that I pulled out of WBU.jsp just clones the first format in the bunch, updates the styles, and sets that to all the cells. Obviously we will want to revisit this and do a more specific job of only updating those sections of each style for each cell. This could get ugly in terms of xfs created and/or performance of checking all the existing ones for duplicates


getCells

public CellHandle[] getCells()
Get all the cellHandles referenced in this CellInfo. If any of the cells don't exist, pre-populate as BLANK cells so we can apply formatting.

Returns:
cellHandle[]

getCellRange

public java.lang.String getCellRange()

setCellRange

public void setCellRange(java.lang.String cellRange)

getFontSize

public java.lang.String getFontSize()

setFontSize

public void setFontSize(java.lang.String fontSize)

getFormatPattern

public java.lang.String getFormatPattern()

setFormatPattern

public void setFormatPattern(java.lang.String formatPattern)

getTextAlign

public java.lang.String getTextAlign()

setTextAlign

public void setTextAlign(java.lang.String textAlign)

getSheetName

public java.lang.String getSheetName()

setSheetName

public void setSheetName(java.lang.String sheetName)

getTextDecoration

public java.lang.String getTextDecoration()

setTextDecoration

public void setTextDecoration(java.lang.String textDecoration)

getFontWeight

public java.lang.String getFontWeight()

setFontWeight

public void setFontWeight(java.lang.String fontWeight)

getBackgroundColor

public java.lang.String getBackgroundColor()

setBackgroundColor

public void setBackgroundColor(java.lang.String backgroundColor)

getFontFamily

public java.lang.String getFontFamily()

setFontFamily

public void setFontFamily(java.lang.String fontFamily)

getColor

public java.lang.String getColor()

setColor

public void setColor(java.lang.String color)

getLink

public java.lang.String getLink()

setLink

public void setLink(java.lang.String lnk)


Copyright © 2009 Extentech Inc. All Rights Reserved.