|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.snowtide.pdf.forms.AcroButtonField
com.snowtide.pdf.forms.AcroRadioButtonGroupField
public class AcroRadioButtonGroupField
Instances of this class represent a group of radio buttons in an interactive forms.
Refer to AcroButtonField and AcroFormField for overview documentation.
| Field Summary | |
|---|---|
protected com.snowtide.pdf.PDFTextStreamCallback |
callback
|
| Fields inherited from class com.snowtide.pdf.forms.AcroButtonField |
|---|
BUTTON_TYPE_CHECKBOX, BUTTON_TYPE_PUSHBUTTON, BUTTON_TYPE_RADIO_GROUP, DEFAULT_UNSELECTED_VALUE |
| Fields inherited from interface com.snowtide.pdf.forms.AcroFormField |
|---|
FIELD_TYPE_BUTTON, FIELD_TYPE_CHOICE, FIELD_TYPE_OTHER, FIELD_TYPE_SIGNATURE, FIELD_TYPE_TEXT |
| Method Summary | |
|---|---|
boolean |
canChangeValue()
This function always returns true. |
java.lang.Object |
getDefaultValue()
Returns the default value to which the field reverts when a reset-form action is executed, as specified in the /DV entry in this field's PDF dictionary. |
java.lang.String |
getFullName()
Returns the fully-qualified name of this field, which should be unique within a PDF document form. |
java.lang.String |
getLocalName()
Returns the local name of the field, as specified in the /T entry in this field's PDF dictionary. |
java.lang.String |
getMappingName()
Returns the 'mapping name' of this field, as specified in the /TM entry in this field's PDF dictionary. |
java.lang.String |
getName()
Returns the canonical name of this field. |
java.util.Set |
getPossibleValues()
Returns a set of the possible values that may be set on this button. |
java.lang.Object |
getType()
Returns the type of field, as specified in the /FT entry in this field's PDF dictionary. |
java.lang.String |
getUIName()
Returns the user-friendly name of this field, as specified in the /TU entry in this field's PDF dictionary. |
boolean |
hasValueChanged()
Returns true only if this field's value has been changed since being loaded from the PDF document. |
boolean |
isReadOnly()
Returns true only if this field is designated as read-only. |
boolean |
setValue(java.lang.String val)
Sets the value of this button field. |
| Methods inherited from class com.snowtide.pdf.forms.AcroButtonField |
|---|
getButtonType, getExportValue, getExportValues, getValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final com.snowtide.pdf.PDFTextStreamCallback callback
| Method Detail |
|---|
public java.util.Set getPossibleValues()
public boolean setValue(java.lang.String val)
throws java.lang.IllegalArgumentException
getPossibleValues() or null (i.e. no buttons in the radio button group should be selected).
setValue in interface AcroFormFieldjava.lang.IllegalArgumentException - - if a String is provided that is not in the set returned by getPossibleValues().public boolean canChangeValue()
canChangeValue in interface AcroFormFieldpublic boolean isReadOnly()
AcroFormField
isReadOnly in interface AcroFormFieldpublic java.lang.Object getDefaultValue()
AcroFormFieldAcroFormField.getValue() function, and depends upon the
type of this field.
getDefaultValue in interface AcroFormFieldpublic java.lang.String getFullName()
AcroFormFieldReturns the fully-qualified name of this field, which should be unique within a PDF document form. Details of how full names are constructed are specified in Section 8.6.2 (Field Names) of the PDF Document Specification.
It suffices to say here that form fields in an interactive AcroForm are defined in a hierarchical manner,
and that their local names are used to derive a period-delimited
full name that guarantees each name's uniqueness within the parent AcroForm.
getFullName in interface AcroFormFieldpublic java.lang.String getLocalName()
AcroFormFieldFormField.getName() implementation.
getLocalName in interface AcroFormFieldpublic java.lang.String getMappingName()
AcroFormField
getMappingName in interface AcroFormFieldpublic java.lang.String getName()
FormFieldFormField
instance with a particular name should be available from a Form
instance.
getName in interface FormFieldpublic java.lang.Object getType()
AcroFormFieldFIELD_TYPE_BUTTON, then this AcroFormField
is an instance of AcroButtonFieldFIELD_TYPE_TEXT, then this AcroFormField
is an instance of AcroTextFieldFIELD_TYPE_CHOICE, then this AcroFormField
is an instance of AcroChoiceFieldFIELD_TYPE_SIGNATURE, then this AcroFormField
is an instance of AcroSignatureFieldFIELD_TYPE_OTHER, then this AcroFormField
has no specific concrete implementation. This case is reserved for form fields
with new type indicators that may be introduced by Adobe in the future.
getType in interface AcroFormFieldpublic boolean hasValueChanged()
AcroFormField
hasValueChanged in interface AcroFormFieldpublic java.lang.String getUIName()
AcroFormFieldReturns the user-friendly name of this field, as specified in the /TU entry in this field's PDF dictionary. This function can return null if no user-friendly field name is defined.
getUIName in interface AcroFormFieldgetUIName in interface FormField
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||