|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packagecom.itextpdf.forms.fields
as colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a tag will cause all subsequent paragraphs to be displayed differently.
ReturnsClass PdfButtonFormField, boolean isPushButton()Btn
, the form type for choice form fields.@return the form type, as a PdfName
If true, the field is a pushbutton that does not retain a permanent value.Class PdfButtonFormField, boolean isRadio()@return whether or not the field is currently a pushbutton
If true, the field is a set of radio buttons; if false, the field is a check box. This flag only works if the Pushbutton flag is set to false.Class PdfButtonFormField, boolean isRadiosInUnison()@return whether the field is currently radio buttons or a checkbox
If true, a group of radio buttons within a radio button field that use the same value for the on state will turn on and off in unison; that is if one is checked, they are all checked. If false, the buttons are mutuallyClass PdfButtonFormField, boolean isToggleOff()exclusiveexclusive @return whether or not buttons are turned off in unison
If true, clicking the selected button deselects it, leaving no button selected. If false, exactly one radio button shall be selected at all times. Only valid for radio buttons.Class PdfButtonFormField, PdfButtonFormField setPushButton(boolean)@return whether a radio button currently allows to choose no options
If true, the field is a pushbutton that does not retain a permanent value.Class PdfButtonFormField, PdfButtonFormField setRadio(boolean)@param pushButton whether or not to set the field to apushbuttonpushbutton @return current PdfButtonFormField
If true, the field is a set of radio buttons; if false, the field is a check box. This flag should be set only if the Pushbutton flag is set to false.Class PdfButtonFormField, PdfButtonFormField setRadiosInUnison(boolean)@param radio whether the field should be radio buttons or acheckboxcheckbox @return current PdfButtonFormField
If true, a group of radio buttons within a radio button field that use the same value for the on state will turn on and off in unison; that is if one is checked, they are all checked. If false, the buttons are mutuallyClass PdfButtonFormField, PdfButtonFormField setToggleOff(boolean)exclusiveexclusive @param radiosInUnison whether or not buttons should turn off inunisonunison @return current PdfButtonFormField
If true, clicking the selected button deselects it, leaving no button selected. If false, exactly one radio button shall be selected at all times.Class PdfButtonFormField, int FF_NO_TOGGLE_TO_OFF@param toggleOff whether a radio button may allow to choose nooptionsoptions @return current PdfButtonFormField
ButtonIffieldtrue,flagsclicking the selected button deselects it, leaving no button selected. If false, exactly one radio button shall be selected at all times.
Gets the current index of the first option in a scrollable list.Class PdfChoiceFormField, boolean isCommitOnSelChange()@return the index of the first option, as a PdfNumber
If true, the new value shall be committed as soon as a selection is made (commonly with the pointing device).Class PdfChoiceFormField, boolean isEdit()@return whether or not to save changes immediately
If true, the combo box shall include an editable text box as well as a drop-down list; if false, it shall include only a drop-down list. This flag shall be used only if the Combo flag is true.Class PdfChoiceFormField, boolean isMultiSelect()@return whether or not there is currently an editable text box
If true, more than one of the field's option items may be selected simultaneously; if false, at most oneClass PdfChoiceFormField, boolean isSort()itemitem shall be selected.@return whether or not multiple selection is currently allowed
If true, the field's option items shall be sorted alphabetically. This flag is intended for use by writers, not by readers.Class PdfChoiceFormField, boolean isSpellCheck()@return whether or not the items are currently sorted
If true, text entered in the field shall be spell-checked..Class PdfChoiceFormField, PdfChoiceFormField setCombo(boolean)@return whether or not PDF viewer must perform a spell check
If true, the field is a combo box; if false, the field is a list box.Class PdfChoiceFormField, PdfChoiceFormField setCommitOnSelChange(boolean)@param combo whether or not the field should be a comboboxbox @return current PdfChoiceFormField
If true, the new value shall be committed as soon as a selection is made (commonly with the pointing device).Class PdfChoiceFormField, PdfChoiceFormField setEdit(boolean)@param commitOnSelChange whether or not to save changesimmediatelyimmediately @return current PdfChoiceFormField
If true, the combo box shall include an editable text box as well as a drop-down list; if false, it shall include only a drop-down list. This flag shall be used only if the Combo flag is true.Class PdfChoiceFormField, PdfChoiceFormField setIndices(PdfArray)@param edit whether or not to add an editable textboxbox @return current PdfChoiceFormField
Sets the selected items in the field. @param indices a sorted array of indices representing selected items in theClass PdfChoiceFormField, PdfChoiceFormField setListSelected(String[])fieldfield @return current PdfChoiceFormField
Highlights the options. If this method is used for Combo box, the first value in input array will be the fieldClass PdfChoiceFormField, PdfChoiceFormField setListSelected(String[], boolean)valuevalue @param optionValues Array of options to behighlightedhighlighted @return current PdfChoiceFormField
Highlights the options and generates field appearance if needed.Class PdfChoiceFormField, PdfChoiceFormField setListSelected(int[]).If this method is used for Combo box, the first value in inputarrayarray will be the fieldvaluevalue @param optionValues Array of options to be highlighted @param generateAppearance if false, appearance won't beregeneratedregenerated @return current PdfChoiceFormField
Highlights the options. If this method is used for Combo box, the first value in input array will be the fieldClass PdfChoiceFormField, PdfChoiceFormField setMultiSelect(boolean)valuevalue @param optionNumbers The optionnumbersnumbers @returnThe edited PdfChoiceFormField
If true, more than one of the field's option items may be selected simultaneously; if false, at most one item shall be selected.Class PdfChoiceFormField, PdfChoiceFormField setSort(boolean)@param multiSelect whether or not to allow multipleselectionselection @return current PdfChoiceFormField
If true, the field's option items shall be sorted alphabetically. This flag is intended for use by writers, not by readers.Class PdfChoiceFormField, PdfChoiceFormField setSpellCheck(boolean)@param sort whether or not to sort theitemsitems @return current PdfChoiceFormField
If true, text entered in the field shall be spell-checked.Class PdfChoiceFormField, PdfChoiceFormField setTopIndex(int).@param spellCheck whether or not to require the PDF viewer to perform a spellcheckcheck @return current PdfChoiceFormField
Sets the index of the first visible option in a scrollable list. @param index the index of the firstClass PdfChoiceFormField, int FF_COMBOoptionoption @return current PdfChoiceFormField
ChoiceIf true, the field is a combo box. If false, the fieldflagsis a list box.
This class represents a single field or field group in an AcroForm.Class PdfFormField, constructor PdfFormField(PdfDocument)To be able to be wrapped with this PdfObjectWrapper the PdfObject must be indirect.
Creates a minimal PdfFormField. @param pdfDocument TheClass PdfFormField, constructor PdfFormField(PdfWidgetAnnotation, PdfDocument)documentPdfDocument instance.
Creates a form field as a parent of a PdfWidgetAnnotation. @param widgetClass PdfFormField, PdfDictionary getAdditionalAction()The widget which will be a kid of the PdfFormField. @param pdfDocument ThedocumentPdfDocument instance.
Gets the currently additional action dictionary for the form field. @return the additional action dictionary.Class PdfFormField, PdfString getAlternativeName()
Gets the current alternate name. The alternate is a descriptive name to be used by status messages etc. @return the current alternate name, as a PdfString.Class PdfFormField, String[] getAppearanceStates()
Class PdfFormField, PdfString getDefaultAppearance()Gets the appearance state names.{@inheritDoc} @returnan array of Strings containing the names of the appearance states{@inheritDoc}
Class PdfFormField, PdfString getDefaultStyle()Gets default appearance string containing a sequence of valid page-content graphics or text state operators that define such properties as the field's text size and color.{@inheritDoc} @returnthe default appearance graphics, as a PdfString{@inheritDoc}
Gets a default style string, as described in "Rich Text Strings" section of Pdf spec. @return the default style, as a PdfString.Class PdfFormField, PdfObject getDefaultValue()
Gets the default fallback value for the form field. @return the default value.Class PdfFormField, boolean getFieldFlag(int)
Checks whether a certain flag, or any of a combination of flags, is set for this form field. @param flag anClass PdfFormField, int getFieldFlags()int
interpreted as a series of a binaryflagsflags. @return true if any of the flags specified in the parameter is also set in the form field.
Gets the current list of PDF form field flags. @return the current list of flags, encoded as an int
.
Class PdfFormField, PdfString getFieldName()
Gets the current field name. @return the current field name, as a PdfString.Class PdfFormField, float getFontSize()
Gets the current fontSize of the form field. @return the current fontSize.Class PdfFormField, TextAlignment getJustification()
Gets a code specifying the form of quadding (justification) to be used in displaying the text: 0 Left-justified 1 Centered 2 Right-justified @return the current justification attribute.Class PdfFormField, PdfArray getKids()
Gets the kids of this object. @return contents of the dictionary's Kids
property, as a PdfArray.
Class PdfFormField, PdfString getMappingName()
Gets the current mapping name. The mapping name can be used when exporting the form data in the document. @return the current mapping name, as a PdfString.Class PdfFormField, PdfArray getOptions()
Gets options for the form field. Should only return usable values for checkboxes and radio buttons. @return the options, as an PdfArray of PdfString objects.Class PdfFormField, PdfDictionary getParent()
Gets the parent dictionary. @return another form field that this field belongs toClass PdfFormField, PdfObject getRichText(), usually a group field.
Gets a rich text string, as described in "Rich Text Strings" section of Pdf spec. May be either PdfStream or PdfString. @return the current rich text value.Class PdfFormField, PdfObject getValue()
Gets the current value contained in the form field. @return the current value, as a PdfObject.Class PdfFormField, String getValueAsString()
Gets the current value contained in the form field. @return the current value, as a String.Class PdfFormField, List
Gets all PdfWidgetAnnotation thatClass PdfFormField, boolean isPassword()this formits childrenfield and its kidsrefer to. @return a list of PdfWidgetAnnotation.
If true, the field is intended for entering a secure password that should not be echoed visibly to the screen. Characters typed from the keyboard should instead be echoed in some unreadable form, such asClass PdfFormField, PdfFormField makeFormField(PdfObject, PdfDocument)asterisksasterisks or bullet characters. @return whether or not the contents of the field must be obfuscated.
Creates a (subtype of) PdfFormField object. The type of the object depends on theClass PdfFormField, AbstractPdfFormField put(PdfName, PdfObject)FT
entry in thepdfObject
parameter. @param pdfObject assumed to be either a PdfDictionary, or a PdfIndirectReference to a PdfDictionary. @param document the PdfDocument to create the fieldinin. @return a new PdfFormField, ornull
ifpdfObject
doesis notcontainaFTformentryfield.
Inserts the value into the PdfDictionary of this field and associates it with the specified key. If the key is already present in this field dictionary, this method will override the old value with the specified one. @param key key to insert or toClass PdfFormField, boolean regenerateField()overrideoverride. @param value the value to associate with the specifiedkeykey. @returnthisthePdfFormFieldeditedinstancefield.
Class PdfFormField, void release()This method regenerates appearance stream of the field. Use it if you changed any field parameters and didn't use setValue method which generates appearance by itself.{@inheritDoc} @returnwhether or not the regeneration was successful.{@inheritDoc}
Class PdfFormField, AbstractPdfFormField remove(PdfName)Releases underlying pdf object and other pdf entities used by wrapper. This method should be called instead of direct call to PdfObject.release() if the wrapper is used.{@inheritDoc}
Removes the specified key from the PdfDictionary of this field. @param key key to beClass PdfFormField, PdfFormField setAdditionalAction(PdfName, PdfAction)removedremoved. @returnthisthePdfFormFieldeditedinstancefield.
Sets an additional action for the form field. @param key the dictionary key to use for storing theClass PdfFormField, PdfFormField setAlternativeName(String)actionaction. @param action theactionaction. @return the editedfieldPdfFormField.
Changes the alternate name of the field to the specified value. The alternate is a descriptive name to be used by status messages etc. @param name the new alternate name, as aClass PdfFormField, PdfFormField setCheckType(CheckBoxType)StringString. @return the editedfieldPdfFormField.
Changes the type of graphical marker used to mark a checkbox as 'on'. Notice that in order to complete the change one should call regenerateFieldClass PdfFormField, AbstractPdfFormField setColor(Color)methodmethod. @param checkType the new checkboxmarkermarker. @returnThethe editedfieldPdfFormField.
Class PdfFormField, PdfFormField setDefaultStyle(PdfString)Sets the text color.{@inheritDoc} @param colorthe new value for the Color{@inheritDoc} @returnthe edited field{@inheritDoc}
Sets a default style string, as described in "Rich Text Strings" section of Pdf spec. @param defaultStyleString a new default style for the formClass PdfFormField, PdfFormField setDefaultValue(PdfObject)fieldfield. @return the editedfieldPdfFormField.
Sets the default fallback value for the form field. @param value the defaultClass PdfFormField, PdfFormField setFieldFlag(int)valuevalue. @return the editedfieldPdfFormField.
Adds a flag, or combination of flags, for the form field. This method is intended to be used one flag at a time, but this is not technically enforced. To replace the current value, use .setFieldFlags(int). @param flag anClass PdfFormField, PdfFormField setFieldFlag(int, boolean)int
interpreted as a series of a binaryflagsflags. @return the editedfieldPdfFormField.
Adds or removes a flag, or combination of flags, for the form field. This method is intended to be used one flag at a time, but this is not technically enforced. To replace the current value, use .setFieldFlags(int). @param flag anClass PdfFormField, PdfFormField setFieldFlags(int)int
interpreted as a series of a binaryflagsflags. @param value iftrue
, adds the flag(s). iffalse
, removes the flag(s). @return the editedfieldPdfFormField.
Sets a flag, or combination of flags, for the form field. This method replaces the previous value. Compare with .setFieldFlag(int) which adds a flag to the existing flags. @param flags anClass PdfFormField, PdfFormField setFieldName(String)int
interpreted as a series of a binaryflagsflags. @return the editedfieldPdfFormField.
Changes the name of the field to the specified value. @param name the new field name, as aClass PdfFormField, AbstractPdfFormField setFont(PdfFont)StringString. @return the editedfieldPdfFormField.
Basic setter for theClass PdfFormField, AbstractPdfFormField setFontAndSize(PdfFont, float)font
property. Regenerates the field appearance after setting the new value. Note that the font will be added to the document so ensure that the font is embedded if it's a pdf/a document. @param font The new font to besetset. @return The editedPdfFormFieldAbstractPdfFormField.
Combined setter for theClass PdfFormField, AbstractPdfFormField setFontSizeAutoScale()font
andfontSize
properties. Regenerates the field appearance after setting the new value. @param font The new font to besetset. @param fontSize The new font size to besetset. @return The editedPdfFormFieldAbstractPdfFormField.
Sets zero font size which will be interpreted as auto-size according to ISO 32000-1, 12.7.3.3. @return the editedClass PdfFormField, PdfFormField setJustification(TextAlignment)fieldAbstractPdfFormField.
Sets a code specifying the form of quadding (justification) to be used in displaying the text: 0 Left-justified 1 Centered 2 Right-justified @param justification the value to set the justification attributeClass PdfFormField, PdfFormField setMappingName(String)toto. @return the editedfieldPdfFormField.
Changes the mapping name of the field to the specified value. The mapping name can be used when exporting the form data in the document. @param name the new alternate name, as aClass PdfFormField, PdfFormField setNoExport(boolean)StringString. @return the edited field.
Sets the NoExport flag, specifying whether or not exporting is forbidden. @param noExport ifClass PdfFormField, PdfFormField setOptions(PdfArray)true
, then exporting is forbidden @return the editedfieldPdfFormField.
Sets options for the form field. Only to be used for checkboxes and radio buttons. @param options an array of PdfString objects that each represent the 'on' state of one of the choices. @return the editedClass PdfFormField, void setParent(PdfFormField)fieldPdfFormField.
Sets a parent PdfFormField for the current object. @param parent another form field that this field belongs to, usually a groupClass PdfFormField, PdfFormField setReadOnly(boolean)field @return the editedfield.
Sets the ReadOnly flag, specifying whether or not the field can be changed. @param readOnly ifClass PdfFormField, PdfFormField setRequired(boolean)true
, then the field cannot be changed. @return the editedfieldPdfFormField.
Sets the Required flag, specifying whether or not the field must be filled in. @param required ifClass PdfFormField, PdfFormField setRichText(PdfObject)true
, then the field must be filled in. @return the editedfieldPdfFormField.
Sets a rich text string, as described in "Rich Text Strings" section of Pdf spec. May be either PdfStream or PdfString. @param richText a new rich textClass PdfFormField, PdfFormField setValue(String)valuevalue. @returnThethe edited PdfFormField.
Sets a value to the field and generating field appearance if needed. @param value of theClass PdfFormField, PdfFormField setValue(String, PdfFont, float)fieldfield. @return the field.
Set text field value with given font andClass PdfFormField, PdfFormField setValue(String, String)sizesize. @param valuetextvaluevalue. @param fonta PdfFont. @param fontSize the size of thefontfont. @return the edited field.
Sets the field value and the display string. The display string is used to build the appearance. @param valueClass PdfFormField, PdfFormField setValue(String, boolean)the fieldvaluevalue. @paramdisplaydisplayValue the string that is used for the appearance. Ifnull
thevalue
parameter will beusedused. @return the edited field.
Sets a value to the field (and fields with the same names) and generates field appearance if needed. @param valueof thefieldfield. @param generateAppearance if false, appearance won't beregeneratedregenerated. @return the field.