/** * Sets an action for this <CODE>Chunk</CODE>. * * @param action * the action * @return this <CODE>Chunk</CODE> */ public Chunk setAction(final PdfAction action) { setRole(PdfName.LINK); return setAttribute(ACTION, action); }
/** * Sets an action for this <CODE>Chunk</CODE>. * * @param action * the action * @return this <CODE>Chunk</CODE> */ public Chunk setAction(final PdfAction action) { setRole(PdfName.LINK); return setAttribute(ACTION, action); }
/** * Sets an anchor for this <CODE>Chunk</CODE>. * * @param url * the <CODE>URL</CODE> to link to * @return this <CODE>Chunk</CODE> */ public Chunk setAnchor(final URL url) { setRole(PdfName.LINK); String urlStr = url.toExternalForm(); setAccessibleAttribute(PdfName.ALT, new PdfString(urlStr)); return setAttribute(ACTION, new PdfAction(urlStr)); }
/** * Sets an anchor for this <CODE>Chunk</CODE>. * * @param url * the <CODE>URL</CODE> to link to * @return this <CODE>Chunk</CODE> */ public Chunk setAnchor(final URL url) { setRole(PdfName.LINK); String urlStr = url.toExternalForm(); setAccessibleAttribute(PdfName.ALT, new PdfString(urlStr)); return setAttribute(ACTION, new PdfAction(urlStr)); }
/** * Sets an anchor for this <CODE>Chunk</CODE>. * * @param url * the url to link to * @return this <CODE>Chunk</CODE> */ public Chunk setAnchor(final String url) { setRole(PdfName.LINK); setAccessibleAttribute(PdfName.ALT, new PdfString(url)); return setAttribute(ACTION, new PdfAction(url)); }
/** * Sets an anchor for this <CODE>Chunk</CODE>. * * @param url * the url to link to * @return this <CODE>Chunk</CODE> */ public Chunk setAnchor(final String url) { setRole(PdfName.LINK); setAccessibleAttribute(PdfName.ALT, new PdfString(url)); return setAttribute(ACTION, new PdfAction(url)); }
graphics.openMCBlock(lbl); symbol = new Chunk(symbol); symbol.setRole(null);
graphics.openMCBlock(lbl); symbol = new Chunk(symbol); symbol.setRole(null);
canvas.openMCBlock(lbl); Chunk symbol = new Chunk(((ListItem) elementToGo).getListSymbol()); symbol.setRole(null); ColumnText.showTextAligned(canvas, Element.ALIGN_LEFT, new Phrase(symbol), leftX + lbl.getIndentation(), firstLineY, 0); canvas.closeMCBlock(lbl);
canvas.openMCBlock(lbl); Chunk symbol = new Chunk(((ListItem) elementToGo).getListSymbol()); symbol.setRole(null); ColumnText.showTextAligned(canvas, Element.ALIGN_LEFT, new Phrase(symbol), leftX + lbl.getIndentation(), firstLineY, 0); canvas.closeMCBlock(lbl);