|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.cos.COSBasedObject
de.intarsys.pdf.pd.PDObject
de.intarsys.pdf.pd.PDAcroFormNode
de.intarsys.pdf.pd.PDAcroFormField
de.intarsys.pdf.pd.PDAFChoiceField
public class PDAFChoiceField
A logical choice field within an AcroForm.
Nested Class Summary | |
---|---|
static class |
PDAFChoiceField.MetaClass
|
Field Summary | |
---|---|
static COSName |
DK_I
|
static COSName |
DK_Opt
|
static COSName |
DK_TI
|
static PDAFChoiceField.MetaClass |
META
The meta class instance |
Fields inherited from class de.intarsys.pdf.pd.PDAcroFormField |
---|
ACROFORMFIELD_ACTION_TRIGGERS, ALIGNMENT_CENTER, ALIGNMENT_LEFT, ALIGNMENT_RIGHT, CN_FT_Btn, CN_FT_Ch, CN_FT_Sig, CN_FT_Tx, DK_DS, DK_DV, DK_Ff, DK_FT, DK_Kids, DK_MaxLen, DK_Parent, DK_RV, DK_T, DK_TM, DK_TU, DK_V |
Fields inherited from class de.intarsys.pdf.pd.PDAcroFormNode |
---|
DK_DA, DK_DR, DK_Encoding, DK_Font, DK_Q |
Fields inherited from class de.intarsys.pdf.pd.PDObject |
---|
DK_Subtype, DK_Type |
Fields inherited from interface de.intarsys.pdf.pd.IAdditionalActionSupport |
---|
DK_AA |
Method Summary | |
---|---|
COSName |
cosGetExpectedFieldType()
The AcroForm field type expected for this. |
List |
getExportValues()
A List containing the option export values as Strings. |
List |
getOptionNames()
A List containing the option names as Strings. |
List |
getValueList()
The value stored in this field as a List of String
objects |
void |
invalidateCaches()
Invalidate all local caches as the base object may have changed. |
boolean |
isCombo()
Convenience method to access "Combo" flag. |
boolean |
isCommitOnSelChange()
Convenience method to access "CommitOnSelChange" flag. |
boolean |
isEdit()
Convenience method to access "Edit" flag. |
boolean |
isMultiSelect()
Convenience method to access "MultiSelect" flag. |
boolean |
isTypeCh()
Return true if this is a field of type "Ch". |
void |
setOptions(Map options)
Assign the currently active options. |
void |
setOptions(String[] names,
String[] values)
Assign the currently active options. |
void |
setValueString(String value)
Set the value of this. |
void |
setValueStrings(List values)
Set the value of this to a List of String objects. |
Methods inherited from class de.intarsys.pdf.pd.PDObject |
---|
cosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, setGenericParent |
Methods inherited from class de.intarsys.pdf.cos.COSBasedObject |
---|
changed, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final COSName DK_Opt
public static final COSName DK_TI
public static final COSName DK_I
public static final PDAFChoiceField.MetaClass META
Method Detail |
---|
public COSName cosGetExpectedFieldType()
PDAcroFormField
cosGetExpectedFieldType
in class PDAcroFormField
public List getExportValues()
public List getOptionNames()
public List getValueList()
List
of String
objects
List
of
String
objectspublic void invalidateCaches()
COSBasedObject
invalidateCaches
in class PDAcroFormField
public boolean isCombo()
public boolean isCommitOnSelChange()
public boolean isEdit()
public boolean isMultiSelect()
public boolean isTypeCh()
PDAcroFormField
"Ch" means this is a choice object.
isTypeCh
in class PDAcroFormField
public void setOptions(Map options)
options
- A Map
containing the new options.public void setOptions(String[] names, String[] values)
names
- values
- public void setValueString(String value)
PDAcroFormField
setValueString
in class PDAcroFormField
value
- The new value of this, represented by a String
.public void setValueStrings(List values)
PDAcroFormField
List
of String
objects.
setValueStrings
in class PDAcroFormField
values
- The new value.
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |