org.mapfish.print.config.layout
Class ColumnDef

java.lang.Object
  extended by org.mapfish.print.config.layout.ColumnDef

public class ColumnDef
extends java.lang.Object

Bean to configure an attributes block's column.

See http://trac.mapfish.org/trac/mapfish/wiki/PrintModuleServer#Attributesblock


Constructor Summary
ColumnDef()
           
 
Method Summary
 com.lowagie.text.pdf.PdfPCell createContentPdfCell(PJsonObject params, RenderingContext context, int row, int col, int nbRows, int nbCols, TableConfig config)
           
 com.lowagie.text.pdf.PdfPCell createHeaderPdfCell(PJsonObject params, RenderingContext context, int col, int nbRows, int nbCols, TableConfig config)
           
 int getColumnWeight()
           
 boolean isVisible(RenderingContext context, PJsonObject params)
           
 void setCell(Block cell)
           
 void setColumnWeight(int columnWeight)
           
 void setHeader(Block header)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnDef

public ColumnDef()
Method Detail

setHeader

public void setHeader(Block header)

setCell

public void setCell(Block cell)

createHeaderPdfCell

public com.lowagie.text.pdf.PdfPCell createHeaderPdfCell(PJsonObject params,
                                                         RenderingContext context,
                                                         int col,
                                                         int nbRows,
                                                         int nbCols,
                                                         TableConfig config)
                                                  throws com.lowagie.text.DocumentException
Throws:
com.lowagie.text.DocumentException

createContentPdfCell

public com.lowagie.text.pdf.PdfPCell createContentPdfCell(PJsonObject params,
                                                          RenderingContext context,
                                                          int row,
                                                          int col,
                                                          int nbRows,
                                                          int nbCols,
                                                          TableConfig config)
                                                   throws com.lowagie.text.DocumentException
Throws:
com.lowagie.text.DocumentException

isVisible

public boolean isVisible(RenderingContext context,
                         PJsonObject params)

validate

public void validate()

setColumnWeight

public void setColumnWeight(int columnWeight)

getColumnWeight

public int getColumnWeight()


Copyright © 2009 Camptocamp SA. All Rights Reserved.