public class IndexEvents extends PdfPageEventHelper
| Modifier and Type | Class and Description | 
|---|---|
class  |  
           IndexEvents.Entry 
            
              Class for an index entry. 
               |  
          
| Constructor and Description | 
|---|
IndexEvents()  |  
          
| Modifier and Type | Method and Description | 
|---|---|
void |  
           create(Chunk text, String in1) 
            
              Create an index entry. 
               |  
          
void |  
           create(Chunk text, String in1, String in2) 
            
              Create an index entry. 
               |  
          
void |  
           create(Chunk text, String in1, String in2, String in3) 
            
              Create an index entry. 
               |  
          
Chunk |  
           create(String text, String in1) 
            
              Create an index entry. 
               |  
          
Chunk |  
           create(String text, String in1, String in2) 
            
              Create an index entry. 
               |  
          
Chunk |  
           create(String text, String in1, String in2, String in3) 
            
              Create an index entry. 
               |  
          
List<IndexEvents.Entry> |  
           getSortedEntries() 
            
              Returns the sorted list with the entries and the collected page numbers. 
               |  
          
void |  
           onGenericTag(PdfWriter writer, Document document, Rectangle rect, String text) 
            
              All the text that is passed to this event, gets registered in the indexentry. 
               |  
          
void |  
           setComparator(Comparator<IndexEvents.Entry> aComparator) 
            
              Set the comparator. 
               |  
          
onChapter, onChapterEnd, onCloseDocument, onEndPage, onOpenDocument, onParagraph, onParagraphEnd, onSection, onSectionEnd, onStartPagepublic void onGenericTag(PdfWriter writer, Document document, Rectangle rect, String text)
onGenericTag in interface PdfPageEvent 
           onGenericTag in class PdfPageEventHelper 
           writer - the PdfWriter for this document 
           document - the document 
           rect - the Rectangle containing the Chunk 
           text - the text of the tag 
           PdfPageEventHelper.onGenericTag( com.itextpdf.text.pdf.PdfWriter, com.itextpdf.text.Document, com.itextpdf.text.Rectangle, java.lang.String) 
           public Chunk create(String text, String in1, String in2, String in3)
text - The text for the Chunk. 
           in1 - The first level. 
           in2 - The second level. 
           in3 - The third level. 
           public Chunk create(String text, String in1)
text - The text for the Chunk. 
           in1 - The first level. 
           public Chunk create(String text, String in1, String in2)
text - The text for the Chunk. 
           in1 - The first level. 
           in2 - The second level. 
           public void create(Chunk text, String in1, String in2, String in3)
text - The text. 
           in1 - The first level. 
           in2 - The second level. 
           in3 - The third level. 
           public void create(Chunk text, String in1)
text - The text. 
           in1 - The first level. 
           public void create(Chunk text, String in1, String in2)
text - The text. 
           in1 - The first level. 
           in2 - The second level. 
           public void setComparator(Comparator<IndexEvents.Entry> aComparator)
aComparator - The comparator to set. 
           public List<IndexEvents.Entry> getSortedEntries()
Copyright © 1998–2019. All rights reserved.