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
public class PdfCollectionSort
- extends PdfDictionary
Fields inherited from class com.lowagie.text.pdf.PdfObject |
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
Method Summary |
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.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, toString |
Methods inherited from class com.lowagie.text.pdf.PdfObject |
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type |
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
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.