Slide extends Component implements ListContainer, TableContainer, TextboxContainer, ChartContainer { public Table addTable() { return getTableContainerImpl().addTable(); } private  Slide(DrawPageElement pageElement); static Slide getInstance(DrawPageElement pageElement); DrawPageElement getOdfElement(); int getSlideIndex(); String getSlideName(); void setSlideName(String name); Notes getNotesPage(); OdfElement getListContainerElement(); List addList(); List addList(ListDecorator decorator); void clearList(); Iterator<List> getListIterator(); boolean removeList(List list); Table addTable(); Table addTable(int numRows, int numCols); Table getTableByName(String name); java.util.List<Table> getTableList(); TableBuilder getTableBuilder(); OdfElement getTableContainerElement(); Textbox addTextbox(); Iterator<Textbox> getTextboxIterator(); boolean removeTextbox(Textbox box); OdfElement getFrameContainerElement(); Textbox addTextbox(FrameRectangle position); Textbox getTextboxByName(String name); java.util.List<Textbox> getTextboxByUsage(PresentationDocument.PresentationClass usage); Chart createChart(String title, DataSet dataset, Rectangle rect); Chart createChart(String title, SpreadsheetDocument document, CellRangeAddressList cellRangeAddr, boolean firstRowAsLabel,
			boolean firstColumnAsLabel, boolean rowAsDataSeries, Rectangle rect); Chart createChart(String title, String[] labels, String[] legends, double[][] data, Rectangle rect); void deleteChartById(String chartId); void deleteChartByTitle(String title); Chart getChartById(String chartId); java.util.List<Chart> getChartByTitle(String title); int getChartCount();  }
@Test public void testAddTable() { try { doc = PresentationDocument.loadDocument(ResourceUtilities.getTestResourceAsStream(TEST_PRESENTATION_FILE_MAIN)); TableContainer container = doc.newSlide(2, "title_plus_text", Slide.SlideLayout.TITLE_PLUS_TEXT); Table table = container.addTable(); table.setTableName("SlideTable"); String slideTableCellValue = "SlideTable Cell String"; table.getCellByPosition(0, 0).setStringValue(slideTableCellValue); doc.save(ResourceUtilities.newTestOutputFile("SlideTableOutput.odp")); doc = PresentationDocument.loadDocument(ResourceUtilities.getTestResourceAsStream("SlideTableOutput.odp")); Assert.assertEquals(slideTableCellValue, table.getCellByPosition(0, 0).getStringValue()); } catch (Exception e) { LOG.log(Level.SEVERE, null, e); Assert.fail(e.getMessage()); } }