com.lowagie.text.pdf.collection

Class PdfCollectionSort

public class PdfCollectionSort extends PdfDictionary

Constructor Summary
PdfCollectionSort(String key)
Constructs a PDF Collection Sort Dictionary.
PdfCollectionSort(String[] keys)
Constructs a PDF Collection Sort Dictionary.
Method Summary
voidsetSortOrder(boolean ascending)
Defines the sort order of the field (ascending or descending).
voidsetSortOrder(boolean[] ascending)
Defines the sort order of the field (ascending or descending).

Constructor Detail

PdfCollectionSort

public PdfCollectionSort(String key)
Constructs a PDF Collection Sort Dictionary.

Parameters: key the key of the field that will be used to sort entries

PdfCollectionSort

public PdfCollectionSort(String[] keys)
Constructs a PDF Collection Sort Dictionary.

Parameters: keys the keys of the fields that will be used to sort entries

Method Detail

setSortOrder

public void setSortOrder(boolean ascending)
Defines the sort order of the field (ascending or descending).

Parameters: ascending true is the default, use false for descending order

setSortOrder

public void setSortOrder(boolean[] ascending)
Defines the sort order of the field (ascending or descending).

Parameters: ascending an array with every element corresponding with a name of a field.