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

NameTypeAccessDescription
valueStringReadReturns the export value of this option.
displayNameStringReadReturns the display name of this option.

Methods

SignatureDescription
Option(value: String, displayName: String)Constructs an option with the given value and display name.
getValue()StringReturns the export value of this option.
getDisplayName()StringReturns the display name of this option.
toString()StringReturns the display name if available, otherwise the value.

See Also

 English