com.lowagie.text.pdf.collection
Class PdfCollectionItem

java.lang.Object
  extended bycom.lowagie.text.pdf.PdfObject
      extended bycom.lowagie.text.pdf.PdfDictionary
          extended bycom.lowagie.text.pdf.collection.PdfCollectionItem

public class PdfCollectionItem
extends PdfDictionary


Field Summary
 
Fields inherited from class com.lowagie.text.pdf.PdfDictionary
CATALOG, FONT, OUTLINES, PAGE, PAGES
 
Fields inherited from class com.lowagie.text.pdf.PdfObject
ARRAY, BOOLEAN, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE
 
Constructor Summary
PdfCollectionItem(PdfCollectionSchema schema)
          Constructs a Collection Item that can be added to a PdfFileSpecification.
 
Method Summary
 void addItem(String key, Calendar c)
          Sets the value of the collection item.
 void addItem(String key, double d)
          Sets the value of the collection item.
 void addItem(String key, float f)
          Sets the value of the collection item.
 void addItem(String key, int i)
          Sets the value of the collection item.
 void addItem(String key, PdfDate d)
          Sets the value of the collection item.
 void addItem(String key, PdfNumber n)
          Sets the value of the collection item.
 void addItem(String key, PdfString value)
          Sets the value of the collection item.
 void addItem(String key, String value)
          Sets the value of the collection item.
 void setPrefix(String key, String prefix)
          Adds a prefix for the Collection item.
 
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, setIndRef, type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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


Copyright © 2011 EGIZ - E-Government Innovation Center. All Rights Reserved.