| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | FLAG_PUSHBUTTON
A Ff flag. |
| pack-priv static final int | FLAG_RADIO
A Ff flag. |
| pack-priv static final int | FLAG_RADIOS_IN_UNISON
A Ff flag. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | PDButton(PDAcroForm
The form that this field is part of. acroForm, COSDictionary the PDF object to represent as a field. field, PDNonTerminalField the parent node of the node parent)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | constructAppearances()
Implements abstract org. Constructs appearance streams and appearance dictionaries for all widget annotations. |
| public String | |
| public List | Returns: List containing all possible export values. If there is no /Opt entry an empty list will be returned.This will get the (optional) export values. |
| private String | |
| private String | |
| public Set | Returns: the potential values setting the check box to the On state. If an empty Set is returned there is no appearance definition.Get the values to set individual buttons within a group to the on state. |
| public String | |
| public String | getValueAsString()
Implements abstract org. Returns a string representation of the "V" entry, or an empty string. |
| public boolean | Returns: true if type of button field is a push button.Determines if push button bit is set. |
| public boolean | Returns: true if type of button field is a radio button.Determines if radio button bit is set. |
| public void | |
| public void | setExportValues(List<String>
List containing all possible export values. Supplying null or an empty list will remove the Opt entry. values)This will set the export values. |
| public void | setValue(String
Name of option to select value)Implements abstract org. Set the selected option given its name, and try to update the visual appearance. |
| public void | setValue(int
index of option to be selected index)Set the selected option given its index, and try to update the visual appearance. |
| private void | |
| private void |
| FLAG_PUSHBUTTON | back to summary |
|---|---|
| pack-priv static final int FLAG_PUSHBUTTON A Ff flag. If set, the field is a pushbutton. | |
| FLAG_RADIO | back to summary |
|---|---|
| pack-priv static final int FLAG_RADIO A Ff flag. If set, the field is a set of radio buttons | |
| FLAG_RADIOS_IN_UNISON | back to summary |
|---|---|
| pack-priv static final int FLAG_RADIOS_IN_UNISON A Ff flag. If set, radio buttons individual fields, using the same value for the on state will turn on and off in unison. | |
| PDButton | back to summary |
|---|---|
pack-priv PDButton(PDAcroForm acroForm)
| |
| PDButton | back to summary |
|---|---|
| pack-priv PDButton(PDAcroForm acroForm, COSDictionary field, PDNonTerminalField parent) Constructor.
| |
| checkValue | back to summary |
|---|---|
| pack-priv void checkValue(String value) Checks value.
| |
| constructAppearances | back to summary |
|---|---|
| pack-priv void constructAppearances() throws IOException Implements abstract org. Doc from org. Constructs appearance streams and appearance dictionaries for all widget annotations.
Subclasses should not call this method directly but via
| |
| getDefaultValue | back to summary |
|---|---|
| public String getDefaultValue() Returns the default value, if any.
| |
| getExportValues | back to summary |
|---|---|
| public List This will get the (optional) export values. The export values are defined in the field dictionaries /Opt key. The option values are used to define the export values for the field to
| |
| getOnValue | back to summary |
|---|---|
| private String getOnValue(int index) | |
| getOnValueForWidget | back to summary |
|---|---|
| private String getOnValueForWidget(PDAnnotationWidget widget) | |
| getOnValues | back to summary |
|---|---|
| public Set Get the values to set individual buttons within a group to the on state. The On value could be an arbitrary string as long as it is within the limitations of a PDF name object. The Off value shall always be 'Off'. If not set or not part of the normal appearance keys 'Off' is the default | |
| getValue | back to summary |
|---|---|
| public String getValue() Returns the selected value. Off is the default value which will also be returned if the value hasn't been set at all.
| |
| getValueAsString | back to summary |
|---|---|
| public String getValueAsString() Implements abstract org. Doc from org. Returns a string representation of the "V" entry, or an empty string. | |
| isPushButton | back to summary |
|---|---|
| public boolean isPushButton() Determines if push button bit is set.
| |
| isRadioButton | back to summary |
|---|---|
| public boolean isRadioButton() Determines if radio button bit is set.
| |
| setDefaultValue | back to summary |
|---|---|
| public void setDefaultValue(String value) Sets the default value.
| |
| setExportValues | back to summary |
|---|---|
| public void setExportValues(List<String> values) This will set the export values.
| |
| setValue | back to summary |
|---|---|
| public void setValue(String value) throws IOException Implements abstract org. Set the selected option given its name, and try to update the visual appearance.
| |
| setValue | back to summary |
|---|---|
| public void setValue(int index) throws IOException Set the selected option given its index, and try to update the visual appearance. Note this method is only usable if there are export values and used for radio buttons with FLAG_RADIOS_IN_UNISON not set.
| |
| updateByOption | back to summary |
|---|---|
| private void updateByOption(String value) | |
| updateByValue | back to summary |
|---|---|
| private void updateByValue(String value) | |