Option
Overview
Option is a class in Aspose.PDF FOSS for Java.
A single option in a choice field (ComboBox/ListBox).
This class provides 4 methods for working with Option objects in Java programs.
Available methods include: Option, getDisplayName, getValue, toString.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: displayName, value.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
value | String | Read | Returns the export value of this option. |
displayName | String | Read | Returns the display name of this option. |
Methods
| Signature | Description |
|---|---|
Option(value: String, displayName: String) | Constructs an option with the given value and display name. |
getValue() → String | Returns the export value of this option. |
getDisplayName() → String | Returns the display name of this option. |
toString() → String | Returns the display name if available, otherwise the value. |