@Test public final void testStyleString() throws IOException { final Link link = Link.builder("file").style(this.ts).to("s").build(); TestHelper.assertXMLEquals( "<text:a text:style-name=\"test\" xlink:href=\"s\" " + "xlink:type=\"simple\">file</text:a>", link); }
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();  }