Bug 49508 - Appending paragraphs to XWPFTableCell
Summary: Appending paragraphs to XWPFTableCell
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XWPF (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-26 15:36 UTC by Immad
Modified: 2010-06-29 10:05 UTC (History)
0 users



Attachments
Patch for XWPFTableCell.createParagraph method (670 bytes, text/plain)
2010-06-26 15:36 UTC, Immad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Immad 2010-06-26 15:36:31 UTC
Created attachment 25646 [details]
Patch for XWPFTableCell.createParagraph method

XWPFTableCell lacks a method to append paragraphs to itself. While it has an addParagraph method, that method only appends the XWPFParagraph to the internal paragraphs array and does not update the underlying CTTc object. 

Please find attached a patch for a createParagraph method which appends a new paragraph to the cell, updating the paragraph array as well as the CTTc object.
Comment 1 Nick Burch 2010-06-29 10:05:07 UTC
Thanks for this. I decided that addParagraph was probably a more consistent name when compared to the related methods, so I tweaked the name to that. Committed in r958972.