Package com.lowagie.text.pdf.collection
Class PdfCollectionSort
java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.collection.PdfCollectionSort
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPdfCollectionSort(String key) Constructs a PDF Collection Sort Dictionary.PdfCollectionSort(String[] keys) Constructs a PDF Collection Sort Dictionary. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetSortOrder(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).Methods inherited from class com.lowagie.text.pdf.PdfDictionary
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toStringMethods inherited from class com.lowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Constructor Details
-
PdfCollectionSort
Constructs a PDF Collection Sort Dictionary.- Parameters:
key- the key of the field that will be used to sort entries
-
PdfCollectionSort
Constructs a PDF Collection Sort Dictionary.- Parameters:
keys- the keys of the fields that will be used to sort entries
-
-
Method Details
-
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.
-