You have a PdfPCellEvent to do all that.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Nikolaj Brinch Joergensen
> [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, November 04, 2003 9:33
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] Overriding (plugable) PdfPTable classes.
> 
> Hi,
>  
> Thank you very much for an awesome library.
>  
> PdfPTable and supporting classes are really great (just a shame there
> isn't a RtfPTable :-)
>  
> I'm Wondering if it would be possible to make some sort of factory for
> overriding the behaviour of the classes that generates output. I'm faced
> with the issue of controlling the borders for the PdfPCells completely.
> Meaning that I want to set different colors and widths on every side of
> the cell.
> Currently there is only the possibility to turn borders on/off on the
> sides and define the width and color of all borders.
>  
> This could easily be implemented if I could override PdfPCell and if
> PdfPCell was responsible for writing it's own output (currently done by
> the automatic class PdfPRow).
> Other alternative that I like better is to makeit was possible to use the
> visitor patterns for cell rendering, and define renderers for the cells.
> Then I could just subclass the default cell renderer or implement the
> CellRendererInterface, and register that as the cell renderer for the
> cells that needs a particular behaviour.
>  
> I could come up with an initial design and implementation if you like.
>  
> Thanks,
> NEKO
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?   SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to