@Override
public XSLFTableCell getCell(int row, int col) {
- List<XSLFTableRow> rows = getRows();
- if (row < 0 || rows.size() <= row) {
+ if (row < 0 || _rows.size() <= row) {
return null;
}
- XSLFTableRow r = rows.get(row);
+ XSLFTableRow r = _rows.get(row);
if (r == null) {
// empty row
return null;
import org.apache.poi.sl.usermodel.TableCell;
import org.apache.poi.sl.usermodel.VerticalAlignment;
import org.apache.poi.util.Units;
+import org.apache.poi.xddf.usermodel.XDDFLineProperties;
import org.apache.poi.xddf.usermodel.text.XDDFTextBody;
import org.apache.poi.xslf.usermodel.XSLFPropertiesDelegate.XSLFFillProperties;
import org.apache.poi.xslf.usermodel.XSLFTableStyle.TablePartStyle;
}
}
+ public XDDFLineProperties getBorderProperties(BorderEdge edge) {
+ CTLineProperties props = getCTLine(edge, false);
+ return (props == null) ? null : new XDDFLineProperties(props);
+ }
+
+ public void setBorderProperties(BorderEdge edge, XDDFLineProperties properties) {
+ CTLineProperties props = getCTLine(edge, true);
+ if (props != null) {
+ props.set(properties.getXmlObject().copy());
+ }
+ }
+
@Override
public void removeBorder(BorderEdge edge) {
CTTableCellProperties pr = getCellProperties(false);