/** * @since POI 3.15 beta 3 */ private void setCellReferences() { String ref = ctTable.getRef(); if (ref != null) { String[] boundaries = ref.split(":", 2); String from = boundaries[0]; String to = boundaries[1]; startCellReference = new CellReference(from); endCellReference = new CellReference(to); } }
/** * Get the area that this table covers. * * @return the table's area or {@code null} if the area has not been * initialized * @since 4.0.0 */ public AreaReference getArea() { String ref = ctTable.getRef(); if (ref != null) { SpreadsheetVersion version = getXSSFSheet().getWorkbook().getSpreadsheetVersion(); return new AreaReference(ctTable.getRef(), version); } else { return null; } }
if (ctTable.getRef() != null) {
/** * @return The reference for the cell in the top-left part of the table * (see Open Office XML Part 4: chapter 3.5.1.2, attribute ref) * */ public CellReference getStartCellReference() { if(startCellReference==null){ String ref = ctTable.getRef(); String[] boundaries = ref.split(":"); String from = boundaries[0]; startCellReference = new CellReference(from); } return startCellReference; }
/** * @return The reference for the cell in the bottom-right part of the table * (see Open Office XML Part 4: chapter 3.5.1.2, attribute ref) * */ public CellReference getEndCellReference() { if(endCellReference==null){ String ref = ctTable.getRef(); String[] boundaries = ref.split(":"); String from = boundaries[1]; endCellReference = new CellReference(from); } return endCellReference; }
/** * @since POI 3.15 beta 3 */ private void setCellReferences() { String ref = ctTable.getRef(); if (ref != null) { String[] boundaries = ref.split(":", 2); String from = boundaries[0]; String to = boundaries[1]; startCellReference = new CellReference(from); endCellReference = new CellReference(to); } }
/** * Get the area that this table covers. * * @return the table's area or {@code null} if the area has not been * initialized * @since 4.0.0 */ public AreaReference getArea() { String ref = ctTable.getRef(); if (ref != null) { SpreadsheetVersion version = getXSSFSheet().getWorkbook().getSpreadsheetVersion(); return new AreaReference(ctTable.getRef(), version); } else { return null; } }
if (ctTable.getRef() != null) {