You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Constantin Volozhin <cv...@pragmaticsoft.com> on 2008/08/20 09:58:25 UTC
Set cells borders
Hi. Setting of table cells borders doesn't work if table added to slide
already. Is this feature or bug?
This code doesn't produce cell borders:
slide.addShape(pptTable);
pptTable.moveTo(shape.getAnchor().x, shape.getAnchor().y);
TableCell cell3 = pptTable.getCell(1, 2);
cell3.setBorderLeft(new Line());
cell3.setBorderRight(new Line());
cell3.setBorderBottom(new Line());
cell3.setBorderTop(new Line());
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: Set cells borders
Posted by Constantin Volozhin <cv...@pragmaticsoft.com>.
Ok. Thank you.
> Current implementation can create new tables but can't modify the structure of existing ones.
> Once a table is added to the slide, the number of shapes (cells and lines) is immutable.
>
> Yegor
>
> > Hi. Setting of table cells borders doesn't work if table added to slide
> > already. Is this feature or bug?
> >
> > This code doesn't produce cell borders:
> >
> > slide.addShape(pptTable);
> > pptTable.moveTo(shape.getAnchor().x, shape.getAnchor().y);
> >
> > TableCell cell3 = pptTable.getCell(1, 2);
> >
> > cell3.setBorderLeft(new Line());
> > cell3.setBorderRight(new Line());
> > cell3.setBorderBottom(new Line());
> > cell3.setBorderTop(new Line());
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> > For additional commands, e-mail: user-help@poi.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: Set cells borders
Posted by Yegor Kozlov <ye...@dinom.ru>.
Current implementation can create new tables but can't modify the structure of existing ones.
Once a table is added to the slide, the number of shapes (cells and lines) is immutable.
Yegor
> Hi. Setting of table cells borders doesn't work if table added to slide
> already. Is this feature or bug?
>
> This code doesn't produce cell borders:
>
> slide.addShape(pptTable);
> pptTable.moveTo(shape.getAnchor().x, shape.getAnchor().y);
>
> TableCell cell3 = pptTable.getCell(1, 2);
>
> cell3.setBorderLeft(new Line());
> cell3.setBorderRight(new Line());
> cell3.setBorderBottom(new Line());
> cell3.setBorderTop(new Line());
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org