Package com.itextpdf.text.pdf.collection
Class PdfCollectionSort
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfObject
-
- com.itextpdf.text.pdf.PdfDictionary
-
- com.itextpdf.text.pdf.collection.PdfCollectionSort
-
- All Implemented Interfaces:
java.io.Serializable
public class PdfCollectionSort extends PdfDictionary
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PdfCollectionSort(java.lang.String key)
Constructs a PDF Collection Sort Dictionary.PdfCollectionSort(java.lang.String[] keys)
Constructs a PDF Collection Sort Dictionary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setSortOrder(boolean ascending)
Defines the sort order of the field (ascending or descending).void
setSortOrder(boolean[] ascending)
Defines the sort order of the field (ascending or descending).-
Methods inherited from class com.itextpdf.text.pdf.PdfDictionary
checkType, clear, 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, toString
-
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
-
-
-
Constructor Detail
-
PdfCollectionSort
public PdfCollectionSort(java.lang.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(java.lang.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.
-
-