whitespace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716034 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cd254f2f1e
commit
2fab3547be
@ -60,7 +60,6 @@ public class XSSFTable extends POIXMLDocumentPart {
|
|||||||
public XSSFTable() {
|
public XSSFTable() {
|
||||||
super();
|
super();
|
||||||
ctTable = CTTable.Factory.newInstance();
|
ctTable = CTTable.Factory.newInstance();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public XSSFTable(PackagePart part, PackageRelationship rel)
|
public XSSFTable(PackagePart part, PackageRelationship rel)
|
||||||
@ -132,11 +131,8 @@ public class XSSFTable extends POIXMLDocumentPart {
|
|||||||
*/
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
public String getCommonXpath() {
|
public String getCommonXpath() {
|
||||||
|
|
||||||
if (commonXPath == null) {
|
if (commonXPath == null) {
|
||||||
|
|
||||||
String[] commonTokens = {};
|
String[] commonTokens = {};
|
||||||
|
|
||||||
for (CTTableColumn column :ctTable.getTableColumns().getTableColumnArray()) {
|
for (CTTableColumn column :ctTable.getTableColumns().getTableColumnArray()) {
|
||||||
if (column.getXmlColumnPr()!=null) {
|
if (column.getXmlColumnPr()!=null) {
|
||||||
String xpath = column.getXmlColumnPr().getXpath();
|
String xpath = column.getXmlColumnPr().getXpath();
|
||||||
@ -154,21 +150,15 @@ public class XSSFTable extends POIXMLDocumentPart {
|
|||||||
|
|
||||||
commonTokens = subCommonTokens.toArray(container);
|
commonTokens = subCommonTokens.toArray(container);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
commonXPath = "";
|
commonXPath = "";
|
||||||
|
|
||||||
for (int i = 1 ; i< commonTokens.length;i++) {
|
for (int i = 1 ; i< commonTokens.length;i++) {
|
||||||
commonXPath +="/"+commonTokens[i];
|
commonXPath +="/"+commonTokens[i];
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -237,7 +227,6 @@ public class XSSFTable extends POIXMLDocumentPart {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public CellReference getStartCellReference() {
|
public CellReference getStartCellReference() {
|
||||||
|
|
||||||
if (startCellReference==null) {
|
if (startCellReference==null) {
|
||||||
String ref = ctTable.getRef();
|
String ref = ctTable.getRef();
|
||||||
if (ref != null) {
|
if (ref != null) {
|
||||||
@ -255,9 +244,7 @@ public class XSSFTable extends POIXMLDocumentPart {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public CellReference getEndCellReference() {
|
public CellReference getEndCellReference() {
|
||||||
|
|
||||||
if (endCellReference==null) {
|
if (endCellReference==null) {
|
||||||
|
|
||||||
String ref = ctTable.getRef();
|
String ref = ctTable.getRef();
|
||||||
String[] boundaries = ref.split(":");
|
String[] boundaries = ref.split(":");
|
||||||
String from = boundaries[1];
|
String from = boundaries[1];
|
||||||
@ -272,8 +259,6 @@ public class XSSFTable extends POIXMLDocumentPart {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public int getRowCount() {
|
public int getRowCount() {
|
||||||
|
|
||||||
|
|
||||||
CellReference from = getStartCellReference();
|
CellReference from = getStartCellReference();
|
||||||
CellReference to = getEndCellReference();
|
CellReference to = getEndCellReference();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user