/** * @see #imageLink(Attributes, String, String) */ public final void imageLink(String href, String imageUrl) { imageLink(new LinkAttributes(), new ImageAttributes(), href, imageUrl); }
@Override public void emit() { String iconType = group(1); String iconUrl = ((TWikiLanguage) markupLanguage).toIconUrl(iconType); builder.image(new ImageAttributes(), iconUrl); } }
ImageAttributes attributes = new ImageAttributes(); for (int i = 1; i < args.length; i++) { String arg = args[i].trim();
@Override public void emit() { String alignment = group(ALIGNMENT_GROUP); String imageUrl = group(CONTENT_GROUP); String altAndTitle = group(CONTENT_GROUP + 1); String href = group(CONTENT_GROUP + 3); String namedLinkUrl = href == null ? null : ((TextileContentState) getState()).getNamedLinkUrl(href); if (namedLinkUrl != null) { href = namedLinkUrl; } ImageAttributes attributes = new ImageAttributes(); attributes.setTitle(altAndTitle); attributes.setAlt(altAndTitle); if (alignment != null) { if ("<".equals(alignment)) { //$NON-NLS-1$ attributes.setAlign(Align.Left); } else if (">".equals(alignment)) { //$NON-NLS-1$ attributes.setAlign(Align.Right); } else if ("=".equals(alignment)) { //$NON-NLS-1$ attributes.setAlign(Align.Center); } } Textile.configureAttributes(this, attributes, ATTRIBUTES_OFFSET, false); if (href != null) { builder.imageLink(attributes, href, imageUrl); } else { builder.image(attributes, imageUrl); } } }
@Override public void emit() { String hyperlinkBoundaryText = group(1); String hyperlinkSrc = group(2 + Textile.ATTRIBUTES_GROUP_COUNT); String href = group(3 + Textile.ATTRIBUTES_GROUP_COUNT); String namedLinkUrl = ((TextileContentState) getState()).getNamedLinkUrl(href); if (namedLinkUrl != null) { href = namedLinkUrl; } if (hyperlinkBoundaryText.equals("\"")) { //$NON-NLS-1$ LinkAttributes attributes = new LinkAttributes(); attributes.setHref(href); Textile.configureAttributes(this, attributes, ATTRIBUTES_OFFSET, false); builder.beginSpan(SpanType.LINK, attributes); getMarkupLanguage().emitMarkupLine(parser, state, start(2), hyperlinkSrc, 0); builder.endSpan(); } else { final ImageAttributes attributes = new ImageAttributes(); Textile.configureAttributes(this, attributes, ATTRIBUTES_OFFSET, false); builder.imageLink(attributes, href, hyperlinkSrc); } } }
String imageOptions = group(OPTIONS_GROUP); final ImageAttributes attributes = new ImageAttributes(); if (imageOptions != null) { Options.parseOptions(imageOptions, new Handler() {
String imageOptions = group(OPTIONS_GROUP); final ImageAttributes attributes = new ImageAttributes(); attributes.setInline( (getLineStartOffset() == 0) ? false : true
linkAttributes.setTitle(previous.getLabel()); if (navigationImages) { ImageAttributes imageAttributes = new ImageAttributes(); imageAttributes.setAlt(Messages.getString("SplittingHtmlDocumentBuilder.Previous")); //$NON-NLS-1$ out.imageLink(linkAttributes, imageAttributes, previous.getSplitTarget(), linkAttributes.setTitle(rootBuilder.getTitle()); if (navigationImages) { ImageAttributes imageAttributes = new ImageAttributes(); imageAttributes.setAlt(rootBuilder.getTitle()); out.imageLink(linkAttributes, imageAttributes, rootFile.getName(), linkAttributes.setTitle(next.getLabel()); if (navigationImages) { ImageAttributes imageAttributes = new ImageAttributes(); imageAttributes.setAlt(Messages.getString("SplittingHtmlDocumentBuilder.Next")); //$NON-NLS-1$ out.imageLink(linkAttributes, imageAttributes, next.getSplitTarget(),