org.apache.poi.xslf.usermodel
Class XSLFTable
java.lang.Object
org.apache.poi.xslf.usermodel.XSLFShape
org.apache.poi.xslf.usermodel.XSLFGraphicFrame
org.apache.poi.xslf.usermodel.XSLFTable
- All Implemented Interfaces:
- java.lang.Iterable<XSLFTableRow>, GraphicalFrame<XSLFShape,XSLFTextParagraph>, PlaceableShape<XSLFShape,XSLFTextParagraph>, Shape<XSLFShape,XSLFTextParagraph>, TableShape<XSLFShape,XSLFTextParagraph>
public class XSLFTable
- extends XSLFGraphicFrame
- implements java.lang.Iterable<XSLFTableRow>, TableShape<XSLFShape,XSLFTextParagraph>
Represents a table in a .pptx presentation
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFShape |
draw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getCTPlaceholder, getFillPaint, getGrpSpPr, getParent, getPlaceholder, getShapeId, getShapeName, getShapeProperties, getSheet, getSpStyle, getXmlObject, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParent, setPlaceholder |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getCell
public XSLFTableCell getCell(int row,
int col)
- Specified by:
getCell
in interface TableShape<XSLFShape,XSLFTextParagraph>
getCTTable
@Internal
public org.openxmlformats.schemas.drawingml.x2006.main.CTTable getCTTable()
getNumberOfColumns
public int getNumberOfColumns()
- Specified by:
getNumberOfColumns
in interface TableShape<XSLFShape,XSLFTextParagraph>
getNumberOfRows
public int getNumberOfRows()
- Specified by:
getNumberOfRows
in interface TableShape<XSLFShape,XSLFTextParagraph>
getColumnWidth
public double getColumnWidth(int idx)
- Specified by:
getColumnWidth
in interface TableShape<XSLFShape,XSLFTextParagraph>
setColumnWidth
public void setColumnWidth(int idx,
double width)
- Specified by:
setColumnWidth
in interface TableShape<XSLFShape,XSLFTextParagraph>
getRowHeight
public double getRowHeight(int row)
- Specified by:
getRowHeight
in interface TableShape<XSLFShape,XSLFTextParagraph>
setRowHeight
public void setRowHeight(int row,
double height)
- Specified by:
setRowHeight
in interface TableShape<XSLFShape,XSLFTextParagraph>
iterator
public java.util.Iterator<XSLFTableRow> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<XSLFTableRow>
getRows
public java.util.List<XSLFTableRow> getRows()
addRow
public XSLFTableRow addRow()
mergeCells
public void mergeCells(int firstRow,
int lastRow,
int firstCol,
int lastCol)
- Merge cells of a table
getTableStyle
protected XSLFTableStyle getTableStyle()
- Get assigned TableStyle
- Returns:
- the assigned TableStyle
- Since:
- POI 3.15-beta2