com.lowagie.text.pdf.collection

Class PdfCollectionItem

public class PdfCollectionItem extends PdfDictionary

Field Summary
PdfCollectionSchemaschema
The PdfCollectionSchema with the names and types of the items.
Constructor Summary
PdfCollectionItem(PdfCollectionSchema schema)
Constructs a Collection Item that can be added to a PdfFileSpecification.
Method Summary
voidaddItem(String key, String value)
Sets the value of the collection item.
voidaddItem(String key, PdfString value)
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, Calendar c)
Sets the value of the collection item.
voidaddItem(String key, int i)
Sets the value of the collection item.
voidaddItem(String key, float f)
Sets the value of the collection item.
voidaddItem(String key, double d)
Sets the value of the collection item.
voidsetPrefix(String key, String prefix)
Adds a prefix for the Collection item.

Field Detail

schema

PdfCollectionSchema schema
The PdfCollectionSchema with the names and types of the items.

Constructor Detail

PdfCollectionItem

public PdfCollectionItem(PdfCollectionSchema schema)
Constructs a Collection Item that can be added to a PdfFileSpecification.

Method Detail

addItem

public void addItem(String key, String value)
Sets the value of the collection item.

Parameters: value

addItem

public void addItem(String key, PdfString value)
Sets the value of the collection item.

Parameters: value

addItem

public void addItem(String key, PdfDate d)
Sets the value of the collection item.

Parameters: d

addItem

public void addItem(String key, PdfNumber n)
Sets the value of the collection item.

Parameters: n

addItem

public void addItem(String key, Calendar c)
Sets the value of the collection item.

Parameters: c

addItem

public void addItem(String key, int i)
Sets the value of the collection item.

Parameters: i

addItem

public void addItem(String key, float f)
Sets the value of the collection item.

Parameters: f

addItem

public void addItem(String key, double d)
Sets the value of the collection item.

Parameters: d

setPrefix

public void setPrefix(String key, String prefix)
Adds a prefix for the Collection item. You can only use this method after you have set the value of the item.

Parameters: prefix a prefix