TableStyle implements ObjectStyle { public static TableStyleBuilder builder(final String name) { return new TableStyleBuilder(name); } TableStyle(final String styleName, final boolean hidden, final PageStyle pageStyle); static TableStyleBuilder builder(final String name); @Override void addToElements(final OdsElements odsElements); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override ObjectStyleFamily getFamily(); @Override String getName(); @Override String getKey(); @Override boolean isHidden(); PageStyle getPageStyle(); static final TableStyle DEFAULT_TABLE_STYLE; }
@Test public final void testEmpty() throws IOException { final TableStyle ts = TableStyle.builder("test").build(); TestHelper.assertXMLEquals("<style:style style:name=\"test\" style:family=\"table\" " + "style:master-page-name=\"DefaultMasterPage\">" + "<style:table-properties " + "table:display=\"true\" style:writing-mode=\"lr-tb\"/>" + "</style:style>", ts); }
@Test public final void testGetters() { StyleTestHelper.testGettersHidden(TableStyle.builder("test")); }