Yes, that is his point as I see it--he wants to
abbreviate/simplify his code.  Subclassing should
achieve that.

-Matt

--- "Cooremans, Rony"
<[EMAIL PROTECTED]> wrote:
> mm doesent that comes to the same in essence ?
> 
> you add a cell and before you add it to the table
> you give it a certain
> colspan ?
> or do i see that wrong ?
> 
> if you can do pcell.setPhrase(new Phrase(my phrase,
> font), colspan) like
> he suggested
> isent that the same as making a cell of the phrase ,
> setting colspan and
> then adding it to the table
> 
> the only think that i see is that it would be
> shorter with his
> suggestion
> 
> 
> Matt Benson wrote:
> 
> > I understood the original complaint to be that he
> was
> > calling setColspan over and over.  I believe that
> the
> > advice Paulo would give would be to subclass
> PdfPCell
> > and call setColspan in the constructor.
> >
> > -Matt
> >
> > --- "Cooremans, Rony"
> > <[EMAIL PROTECTED]> wrote:
> > > Why dont you do the folowing ?
> > >
> > > PdfPCell cell = new PdfPCell(new Phrase(my
> phrase,
> > > font));
> > > cell.setColspan(colspan);
> > > ptable.addCell(cell);
> > >
> > >
> > > Message: 1
> > > From: "Miller, Eric" <[EMAIL PROTECTED]>
> > > To: "'[EMAIL PROTECTED]'"
> > >          <[EMAIL PROTECTED]>
> > > Date: Fri, 21 Jun 2002 13:46:25 -0600
> > > Subject: [iText-questions] PdfPCell colspan
> > >
> > > Without knowing anything about what it would
> take
> > > someone to implement
> > > something like this, would anyone else find it
> > > useful to have an overidden
> > > method for either PdfPTable.addCell() or
> > > PdfPCell.setPhrase() that included
> > > the colspan?  As in:
> > >
> > > pcell.setPhrase(new Phrase(my phrase, font),
> > > colspan)
> > >         or
> > > ptable.addCell(cell, colspan)
> > >
> > > I'm finding my PdfPTable code does a lot of
> changing
> > > colspans.
> > > just curious
> > > e miller
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
-------------------------------------------------------
> > > Sponsored by:
> > > ThinkGeek at http://www.ThinkGeek.com/
> > > _______________________________________________
> > > iText-questions mailing list
> > > [EMAIL PROTECTED]
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> 
> --
> Rony Cooremans
> 
> TRASYS N.V.
> MVG, LIN, AOSO,  afdeling Geotechniek
> Arianelaan 7, 1200 Brussel
> Tramstraat 52, 9052 Zwijnaarde
> Tel: 02/773.94.87
> Tel: 09/240.75.24
> 
> 
> e-mail Trasys: mailto:[EMAIL PROTECTED]
> e-mail LIN: mailto:[EMAIL PROTECTED]
> 
> 



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to