}
_rows = new ArrayList<>(_table.sizeOfTrArray());
- for(CTTableRow row : _table.getTrArray()) {
+ for(CTTableRow row : _table.getTrList()) {
_rows.add(new XSLFTableRow(row, this));
}
updateRowColIndexes();
TblStyleLstDocument styleDoc = TblStyleLstDocument.Factory.parse(is);
is.close();
_tblStyleLst = styleDoc.getTblStyleLst();
- CTTableStyle[] tblStyleArray = _tblStyleLst.getTblStyleArray();
- _styles = new ArrayList<>(tblStyleArray.length);
- for(CTTableStyle c : tblStyleArray){
+ List<CTTableStyle> tblStyles = _tblStyleLst.getTblStyleList();
+ _styles = new ArrayList<>(tblStyles.size());
+ for(CTTableStyle c : tblStyles){
_styles.add(new XSLFTableStyle(c));
}
}
List<XSLFTextRun> otherRs = other.getTextRuns();
int i=0;
- for(CTRegularTextRun rtr : thisP.getRArray()) {
+ for(CTRegularTextRun rtr : thisP.getRList()) {
XSLFTextRun run = newTextRun(rtr);
run.copy(otherRs.get(i++));
_runs.add(run);
int i = 0;
for (i = 0; i < colsArray.length; i++) {
CTCols cols = colsArray[i];
- CTCol[] colArray = cols.getColArray();
- for (CTCol col : colArray) {
+ for (CTCol col : cols.getColList()) {
addCleanColIntoCols(newCols, col, trackedCols);
}
}
}
private boolean columnExists(CTCols cols, long min, long max) {
- for (CTCol col : cols.getColArray()) {
+ for (CTCol col : cols.getColList()) {
if (col.getMin() == min && col.getMax() == max) {
return true;
}
public int getIndexOfColumn(CTCols cols, CTCol searchCol) {
if (cols == null || searchCol == null) return -1;
int i = 0;
- for (CTCol col : cols.getColArray()) {
+ for (CTCol col : cols.getColList()) {
if (col.getMin() == searchCol.getMin() && col.getMax() == searchCol.getMax()) {
return i;
}