@Test public final void testStyleTable() throws IOException { final Table table = PowerMock.createMock(Table.class); PowerMock.resetAll(); EasyMock.expect(table.getName()).andReturn("t"); PowerMock.replayAll(); final Link link = Link.builder("table").style(this.ts).to(table).build(); TestHelper.assertXMLEquals("<text:a text:style-name=\"test\" xlink:href=\"#t\" " + "xlink:type=\"simple\">table</text:a>", link); PowerMock.verifyAll(); }
public static LinkBuilder builder(final String text) { return new LinkBuilder(text); }
Link implements ParagraphElement { public static LinkBuilder builder(final String text) { return new LinkBuilder(text); } }
Link implements ParagraphElement { public static LinkBuilder builder(final String text) { return new LinkBuilder(text); } Link(final String text, final TextStyle ts, final String href); }
Link implements ParagraphElement { public static LinkBuilder builder(final String text) { return new LinkBuilder(text); } Link(final String text, final TextStyle ts, final String href); static LinkBuilder builder(final String text); @Deprecated static Link create(final String text, final TextStyle ts, final Table table); @Deprecated static Link create(final String text, final Table table); @Deprecated static Link create(final String text, final TextStyle ts, final String relativeRef); @Deprecated static Link create(final String text, final String relativeRef); @Deprecated static Link create(final String text, final TextStyle ts, final File file); @Deprecated static Link create(final String text, final File file); @Deprecated static Link create(final String text, final TextStyle ts, final URL url); @Deprecated static Link create(final String text, final URL url); @Deprecated static Link create(final String text, final TextStyle ts, final URI uri); @Deprecated static Link create(final String text, final TableRef tableRef); @Deprecated static Link create(final String text, final TextStyle ts, final TableRef tableRef); @Deprecated static Link create(final String text, final URI uri); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override void addEmbeddedStylesFromFooterHeader(final StylesContainer stylesContainer); @Override void addEmbeddedStylesFromCell(final StylesContainer stylesContainer); @Override boolean equals(final Object o); @Override final int hashCode(); }
Link implements ParagraphElement { public static LinkBuilder builder(final String text) { return new LinkBuilder(text); } Link(final String text, final TextStyle ts, final String href); static LinkBuilder builder(final String text); @Deprecated static Link create(final String text, final TextStyle ts, final Table table); @Deprecated static Link create(final String text, final Table table); @Deprecated static Link create(final String text, final TextStyle ts, final String relativeRef); @Deprecated static Link create(final String text, final String relativeRef); @Deprecated static Link create(final String text, final TextStyle ts, final File file); @Deprecated static Link create(final String text, final File file); @Deprecated static Link create(final String text, final TextStyle ts, final URL url); @Deprecated static Link create(final String text, final URL url); @Deprecated static Link create(final String text, final TextStyle ts, final URI uri); @Deprecated static Link create(final String text, final TableRef tableRef); @Deprecated static Link create(final String text, final TextStyle ts, final TableRef tableRef); @Deprecated static Link create(final String text, final URI uri); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override void addEmbeddedStylesFromFooterHeader(final StylesContainer stylesContainer); @Override void addEmbeddedStylesFromCell(final StylesContainer stylesContainer); @Override boolean equals(final Object o); @Override final int hashCode();  }