- java.lang.Object
-
- com.lowagie.text.pdf.PdfObject
-
- com.lowagie.text.pdf.PdfDictionary
-
- com.lowagie.text.pdf.collection.PdfCollectionItem
-
public class PdfCollectionItem extends PdfDictionary
-
-
Constructor Summary
Constructors Constructor Description PdfCollectionItem(PdfCollectionSchema schema)Constructs a Collection Item that can be added to a PdfFileSpecification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItem(String key, double d)Sets the value of the collection item.voidaddItem(String key, float f)Sets the value of the collection item.voidaddItem(String key, int i)Sets the value of the collection item.voidaddItem(String key, PdfDate d)Sets the value of the collection item.voidaddItem(String key, PdfNumber n)Sets the value of the collection item.voidaddItem(String key, PdfString value)Sets the value of the collection item.voidaddItem(String key, String value)Sets the value of the collection item.voidaddItem(String key, Calendar c)Sets the value of the collection item.voidsetPrefix(String key, String prefix)Adds a prefix for the Collection item.-
Methods inherited from class com.lowagie.text.pdf.PdfDictionary
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, getKeysAndValues, 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
-
-
-
-
Constructor Detail
-
PdfCollectionItem
public PdfCollectionItem(PdfCollectionSchema schema)
Constructs a Collection Item that can be added to a PdfFileSpecification.- Parameters:
schema- the PdfCollectionSchema
-
-
Method Detail
-
addItem
public void addItem(String key, String value)
Sets the value of the collection item.- Parameters:
value- the value (a String)key- the key
-
addItem
public void addItem(String key, PdfString value)
Sets the value of the collection item.- Parameters:
value- the value (a PdfString)key- the key
-
addItem
public void addItem(String key, PdfDate d)
Sets the value of the collection item.- Parameters:
d- the value (a PdfDate)key- the key
-
addItem
public void addItem(String key, PdfNumber n)
Sets the value of the collection item.- Parameters:
n- the value (a PdfNumber)key- the key
-
addItem
public void addItem(String key, Calendar c)
Sets the value of the collection item.- Parameters:
c- the value (a Calendar)key- the key
-
addItem
public void addItem(String key, int i)
Sets the value of the collection item.- Parameters:
i- the valuekey- the key
-
addItem
public void addItem(String key, float f)
Sets the value of the collection item.- Parameters:
f- the valuekey- the key
-
addItem
public void addItem(String key, double d)
Sets the value of the collection item.- Parameters:
d- the valuekey- the key
-
-