TableCellProperties { public Border getBorder() { return mBorderPropertiesHandler.getBorder(); } protected  TableCellProperties(); protected  TableCellProperties(StyleTableCellPropertiesElement properties); void setBorders(StyleTypeDefinitions.CellBordersType bordersType, Border border); Border getBorder(); Border getTopBorder(); Border getLeftBorder(); Border getRightBorder(); Border getBottomBorder(); Border getDiagonalBlTr(); Border getDiagonalTlBr(); void setBottomBorder(Border border); void setTopBorder(Border border); void setLeftBorder(Border border); void setRightBorder(Border border); void setDiagonalBlTr(Border border); void setDiagonalTlBr(Border border); void setBorder(Border border); void setBackgroundColor(Color aColor); Color getBackgroundColor(); void setWrapped(boolean isWrapped); void setVerticalAlignment(StyleTypeDefinitions.VerticalAlignmentType alignType); StyleTypeDefinitions.VerticalAlignmentType getVerticalAlignment(); Boolean isWrapped(); static TableCellProperties getOrCreateTableCellProperties(OdfStyleBase style); static TableCellProperties getTableCellProperties(OdfStyleBase style);  }
@Test public void testGetBorder() { try { Border borderbase = new Border(Color.LIME, 3.0701, 0.0208, 0.0346, SupportedLinearMeasure.CM); borderbase.setLineStyle(StyleTypeDefinitions.LineType.SINGLE); SpreadsheetDocument doc = SpreadsheetDocument.newSpreadsheetDocument(); Table table = doc.getTableByName("Sheet1"); Cell cell = table.getCellByPosition(2, 2); cell.setBorders(CellBordersType.ALL_FOUR, borderbase); TableCellProperties styleCell = cell.getStyleHandler().getTableCellPropertiesForWrite(); Border bor = styleCell.getBorder(); Assert.assertEquals(borderbase, bor); doc.save(ResourceUtilities.newTestOutputFile("testSupportedLinearMeasure.ods")); } catch (Exception e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); Assert.fail(e.getMessage()); } }