make SXSSFRow._style private, add getRowStyleIndex() in its place
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717042 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f324646c04
commit
a2ac15f1c8
@ -25,6 +25,7 @@ import org.apache.poi.ss.usermodel.Cell;
|
|||||||
import org.apache.poi.ss.usermodel.CellStyle;
|
import org.apache.poi.ss.usermodel.CellStyle;
|
||||||
import org.apache.poi.ss.usermodel.Row;
|
import org.apache.poi.ss.usermodel.Row;
|
||||||
import org.apache.poi.ss.usermodel.Sheet;
|
import org.apache.poi.ss.usermodel.Sheet;
|
||||||
|
import org.apache.poi.util.Internal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Streaming version of XSSFRow implementing the "BigGridDemo" strategy.
|
* Streaming version of XSSFRow implementing the "BigGridDemo" strategy.
|
||||||
@ -36,7 +37,7 @@ public class SXSSFRow implements Row
|
|||||||
SXSSFSheet _sheet;
|
SXSSFSheet _sheet;
|
||||||
SXSSFCell[] _cells;
|
SXSSFCell[] _cells;
|
||||||
int _maxColumn=-1;
|
int _maxColumn=-1;
|
||||||
short _style=-1;
|
private short _style=-1;
|
||||||
short _height=-1;
|
short _height=-1;
|
||||||
boolean _zHeight = false;
|
boolean _zHeight = false;
|
||||||
int _outlineLevel = 0; // Outlining level of the row, when outlining is on
|
int _outlineLevel = 0; // Outlining level of the row, when outlining is on
|
||||||
@ -404,6 +405,11 @@ public class SXSSFRow implements Row
|
|||||||
return getSheet().getWorkbook().getCellStyleAt(_style);
|
return getSheet().getWorkbook().getCellStyleAt(_style);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Internal
|
||||||
|
/*package*/ int getRowStyleIndex() {
|
||||||
|
return _style;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applies a whole-row cell styling to the row.
|
* Applies a whole-row cell styling to the row.
|
||||||
* The row style can be cleared by passing in <code>null</code>.
|
* The row style can be cleared by passing in <code>null</code>.
|
||||||
|
@ -161,7 +161,7 @@ public class SheetDataWriter {
|
|||||||
if (row.getZeroHeight())
|
if (row.getZeroHeight())
|
||||||
_out.write(" hidden=\"true\"");
|
_out.write(" hidden=\"true\"");
|
||||||
if (row.isFormatted()) {
|
if (row.isFormatted()) {
|
||||||
_out.write(" s=\"" + row._style + "\"");
|
_out.write(" s=\"" + row.getRowStyleIndex() + "\"");
|
||||||
_out.write(" customFormat=\"1\"");
|
_out.write(" customFormat=\"1\"");
|
||||||
}
|
}
|
||||||
if (row.getOutlineLevel() != 0) {
|
if (row.getOutlineLevel() != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user