@Test public final void testOptimalWidth() throws IOException { final TableColumnStyle test = TableColumnStyle.builder("test").optimalWidth().build(); TestHelper.assertXMLEquals("<style:style style:name=\"test\" " + "style:family=\"table-column\"><style:table-column-properties " + "fo:break-before=\"auto\" " + "style:use-optimal-column-width=\"true\"/></style:style>", test); }
public static TableColumnStyleBuilder builder(final String name) { return new TableColumnStyleBuilder(name); }
TableColumnStyle implements ObjectStyle { public static TableColumnStyleBuilder builder(final String name) { return new TableColumnStyleBuilder(name); } }
TableColumnStyle implements ObjectStyle { public static TableColumnStyleBuilder builder(final String name) { return new TableColumnStyleBuilder(name); } TableColumnStyle(final String name, final boolean hidden, final Length columnWidth,
                     final boolean optimalWidth); }
TableColumnStyle implements ObjectStyle { public static TableColumnStyleBuilder builder(final String name) { return new TableColumnStyleBuilder(name); } TableColumnStyle(final String name, final boolean hidden, final Length columnWidth,
                     final boolean optimalWidth); static TableColumnStyleBuilder builder(final String name); @Override void addToElements(final OdsElements odsElements); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override boolean equals(final Object obj); @Deprecated Length getColumnWidth(); @Override ObjectStyleFamily getFamily(); @Override String getName(); @Override int hashCode(); @Override String getKey(); @Override boolean isHidden(); void addToContentStyles(final StylesContainer stylesContainer); }
TableColumnStyle implements ObjectStyle { public static TableColumnStyleBuilder builder(final String name) { return new TableColumnStyleBuilder(name); } TableColumnStyle(final String name, final boolean hidden, final Length columnWidth,
                     final boolean optimalWidth); static TableColumnStyleBuilder builder(final String name); @Override void addToElements(final OdsElements odsElements); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override boolean equals(final Object obj); @Deprecated Length getColumnWidth(); @Override ObjectStyleFamily getFamily(); @Override String getName(); @Override int hashCode(); @Override String getKey(); @Override boolean isHidden(); void addToContentStyles(final StylesContainer stylesContainer); static final TableColumnStyle DEFAULT_TABLE_COLUMN_STYLE; }