com.agimatec.utility.fileimport.spreadsheet
Class ExcelGenerator.Styles

java.lang.Object
  extended by com.agimatec.utility.fileimport.spreadsheet.ExcelGenerator.Styles
Enclosing class:
ExcelGenerator

public class ExcelGenerator.Styles
extends Object

style factory class. replace by own class or add additional styles by overriding method 'initStyles()'


Field Summary
protected  Map<String,org.apache.poi.ss.usermodel.CellStyle> styles
           
 
Constructor Summary
ExcelGenerator.Styles()
           
 
Method Summary
 org.apache.poi.hssf.usermodel.HSSFCellStyle blueCell()
           
 org.apache.poi.hssf.usermodel.HSSFCellStyle boldHeader()
           
 org.apache.poi.hssf.usermodel.HSSFCellStyle boldTitle()
           
 void clean()
           
 org.apache.poi.ss.usermodel.CellStyle get(String name)
           
 void put(String name, org.apache.poi.ss.usermodel.CellStyle style)
           
 org.apache.poi.hssf.usermodel.HSSFCellStyle redCell()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

styles

protected Map<String,org.apache.poi.ss.usermodel.CellStyle> styles
Constructor Detail

ExcelGenerator.Styles

public ExcelGenerator.Styles()
Method Detail

get

public org.apache.poi.ss.usermodel.CellStyle get(String name)
Parameters:
name -
Returns:
the style with given name. if not already contained in 'styles' map, invoke the public method in the receiver class to create and cache the style.

put

public void put(String name,
                org.apache.poi.ss.usermodel.CellStyle style)

clean

public void clean()

boldTitle

public org.apache.poi.hssf.usermodel.HSSFCellStyle boldTitle()

boldHeader

public org.apache.poi.hssf.usermodel.HSSFCellStyle boldHeader()

redCell

public org.apache.poi.hssf.usermodel.HSSFCellStyle redCell()

blueCell

public org.apache.poi.hssf.usermodel.HSSFCellStyle blueCell()


Copyright © 2008-2015. All Rights Reserved.