public class PdfCollectionField extends PdfDictionary
Modifier and Type | Field and Description |
---|---|
static int |
CREATIONDATE
A possible type of collection field.
|
static int |
DATE
A possible type of collection field.
|
static int |
DESC
A possible type of collection field.
|
protected int |
fieldType
The type of the PDF collection field.
|
static int |
FILENAME
A possible type of collection field.
|
static int |
MODDATE
A possible type of collection field.
|
static int |
NUMBER
A possible type of collection field.
|
static int |
SIZE
A possible type of collection field.
|
static int |
TEXT
A possible type of collection field.
|
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
Constructor and Description |
---|
PdfCollectionField(String name, int type)
Creates a PdfCollectionField.
|
Modifier and Type | Method and Description |
---|---|
PdfObject |
getValue(String v)
Returns a PdfObject that can be used as the value of a Collection Item.
|
boolean |
isCollectionItem()
Checks if the type of the field is suitable for a Collection Item.
|
void |
setEditable(boolean editable)
Indication if the field value should be editable in the viewer.
|
void |
setOrder(int i)
The relative order of the field name.
|
void |
setVisible(boolean visible)
Sets the initial visibility of the field.
|
checkType, clear, 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
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
public static final int TEXT
public static final int DATE
public static final int NUMBER
public static final int FILENAME
public static final int DESC
public static final int MODDATE
public static final int CREATIONDATE
public static final int SIZE
protected int fieldType
type
previously)
public PdfCollectionField(String name, int type)
name
- the field name
type
- the field type
public void setOrder(int i)
i
- a number indicating the order of the field
public void setVisible(boolean visible)
visible
- the default is true (visible)
public void setEditable(boolean editable)
editable
- the default is false (not editable)
public boolean isCollectionItem()
Copyright © 2016. All rights reserved.