Package com.lowagie.text.pdf
Class AcroFields.Item
java.lang.Object
com.lowagie.text.pdf.AcroFields.Item
- Enclosing class:
- AcroFields
The field representations for retrieval and modification.
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.(will remove 'public' in the future)Deprecated.(will remove 'public' in the future)Deprecated.(will remove 'public' in the future)Deprecated.(will remove 'public' in the future)Deprecated.(will remove 'public' in the future)Deprecated.(will remove 'public' in the future)static final intwriteToAllconstant.static final intwriteToAllandmarkUsedconstant.static final intwriteToAllandmarkUsedconstant. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMerged(int idx) Retrieve the merged dictionary for the given instance.getPage(int idx) Retrieve the page number of the given instancegetTabOrder(int idx) Gets the tabOrder.getValue(int idx) Retrieve the value dictionary of the given instancegetWidget(int idx) Retrieve the widget dictionary of the given instancegetWidgetRef(int idx) Retrieve the reference to the given instancevoidmarkUsed(AcroFields parentFields, int writeFlags) Mark all the item dictionaries used matching the given flagsintsize()Preferred method of determining the number of instances of a given field.voidwriteToAll(PdfName key, PdfObject value, int writeFlags) This function writes the given key/value pair to all the instances of merged, widget, and/or value, depending on thewriteFlagssetting
-
Field Details
-
WRITE_MERGED
public static final int WRITE_MERGEDwriteToAllconstant.- Since:
- 2.1.5
- See Also:
-
WRITE_WIDGET
public static final int WRITE_WIDGETwriteToAllandmarkUsedconstant.- Since:
- 2.1.5
- See Also:
-
WRITE_VALUE
public static final int WRITE_VALUEwriteToAllandmarkUsedconstant.- Since:
- 2.1.5
- See Also:
-
values
Deprecated.(will remove 'public' in the future)An array ofPdfDictionarywhere the value tag /V is present. -
widgets
Deprecated.(will remove 'public' in the future)An array ofPdfDictionarywith the widgets. -
widget_refs
Deprecated.(will remove 'public' in the future)An array ofPdfDictionarywith the widget references. -
merged
Deprecated.(will remove 'public' in the future)An array ofPdfDictionarywith all the field and widget tags merged. -
page
Deprecated.(will remove 'public' in the future)An array ofIntegerwith the page numbers where the widgets are displayed. -
tabOrder
Deprecated.(will remove 'public' in the future)An array ofIntegerwith the tab order of the field in the page.
-
-
Constructor Details
-
Item
public Item()
-
-
Method Details
-
writeToAll
This function writes the given key/value pair to all the instances of merged, widget, and/or value, depending on thewriteFlagssetting- Parameters:
key- you'll never guess what this is for.value- if value is null, the key will be removedwriteFlags- ORed together WRITE_* flags- Since:
- 2.1.5
-
markUsed
Mark all the item dictionaries used matching the given flags- Parameters:
writeFlags- WRITE_MERGED is ignored- Since:
- 2.1.5
-
size
public int size()Preferred method of determining the number of instances of a given field.- Returns:
- number of instances
- Since:
- 2.1.5
-
getValue
Retrieve the value dictionary of the given instance- Parameters:
idx- instance index- Returns:
- dictionary storing this instance's value. It may be shared across instances.
- Since:
- 2.1.5
-
getWidget
Retrieve the widget dictionary of the given instance- Parameters:
idx- instance index- Returns:
- The dictionary found in the appropriate page's Annot array.
- Since:
- 2.1.5
-
getWidgetRef
Retrieve the reference to the given instance- Parameters:
idx- instance index- Returns:
- reference to the given field instance
- Since:
- 2.1.5
-
getMerged
Retrieve the merged dictionary for the given instance. The merged dictionary contains all the keys present in parent fields, though they may have been overwritten (or modified?) by children. Example: a merged radio field dict will contain /V- Parameters:
idx- instance index- Returns:
- the merged dictionary for the given instance
- Since:
- 2.1.5
-
getPage
Retrieve the page number of the given instance- Parameters:
idx-- Returns:
- remember, pages are "1-indexed", not "0-indexed" like field instances.
- Since:
- 2.1.5
-
getTabOrder
Gets the tabOrder.- Parameters:
idx-- Returns:
- tab index of the given field instance
- Since:
- 2.1.5
-