RadioButtonOptionField

RadioButtonOptionField

Overview

RadioButtonOptionField is a class in Aspose.PDF FOSS for Java.

A single option in a radio button group.

This class provides 26 methods for working with RadioButtonOptionField objects in Java programs. Available methods include: RadioButtonOptionField, getAppearance, getBorder, getCaption, getCharacteristics, getColor, getDefaultAppearance, getOptionName, getOptionValue, getPage, getPdfDictionary, getRect, and 11 additional methods. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: appearance, border, caption, characteristics, color, defaultAppearance, and 6 more.

Properties

NameTypeAccessDescription
optionValueStringReadReturns the value this option represents.
rectRectangleReadReturns the rectangle of this option widget.
pdfDictionaryPdfDictionaryReadReturns the underlying PDF dictionary.
styleBoxStyleReadReturns the per-option box style.
characteristicsAppearanceCharacteristicsReadReturns typed access to this option’s appearance characteristics
({@code /MK} sub-dictionary on the kid widget).
optionNameStringReadReturns the export value (option name) of this option.
pagePageReadReturns the page this option’s widget belongs to.
borderorg.aspose.pdf.annotations.BorderReadReturns the border ({@code /BS} dictionary) attached to this option’s
widget, or {@code null} if absent.
captionStringReadReturns the visible caption shown alongside this option ({@code /MK/CA}).
colororg.aspose.pdf.ColorReadReturns the border colour ({@code /MK/BC}) used for this option.
defaultAppearanceStringReadReturns the {@code /DA} default-appearance string for this option, or
null if not set.
appearanceAppearanceDictionaryReadReturns the typed appearance view over this option’s {@code /AP}
sub-dictionary.

Methods

SignatureDescription
RadioButtonOptionField(dict: PdfDictionary, page: Page)Constructs a radio button option from a PDF dictionary.
RadioButtonOptionField()Creates a fresh, unattached radio-button option widget.
RadioButtonOptionField(page: Page, rect: Rectangle)Creates a fresh radio-button option widget attached to {@code page} with
the given rectangle.
getOptionValue()StringReturns the value this option represents.
getRect()RectangleReturns the rectangle of this option widget.
getPdfDictionary()PdfDictionaryReturns the underlying PDF dictionary.
getStyle()BoxStyleReturns the per-option box style.
setStyle(style: BoxStyle)Sets the per-option box style.
getCharacteristics()AppearanceCharacteristicsReturns typed access to this option’s appearance characteristics
({@code /MK} sub-dictionary on the kid widget).
getOptionName()StringReturns the export value (option name) of this option.
setOptionName(name: String)Sets the export value (option name) of this option.
setWidth(width: double)Sets the widget width by adjusting the right edge of {@code /Rect}.
setHeight(height: double)Sets the widget height by adjusting the top edge of {@code /Rect}.
getPage()PageReturns the page this option’s widget belongs to.
setRect(rect: Rectangle)Sets the widget rectangle ({@code /Rect}) by directly writing into the
underlying dictionary.
getBorder()org.aspose.pdf.annotations.BorderReturns the border ({@code /BS} dictionary) attached to this option’s
widget, or {@code null} if absent.
setBorder(border: org.aspose.pdf.annotations.Border)Sets the border ({@code /BS} sub-dictionary) on this option’s widget.
getCaption()StringReturns the visible caption shown alongside this option ({@code /MK/CA}).
setCaption(caption: String)Sets the visible caption shown alongside this option ({@code /MK/CA}).
getColor()org.aspose.pdf.ColorReturns the border colour ({@code /MK/BC}) used for this option.
setColor(color: org.aspose.pdf.Color)Sets the border colour ({@code /MK/BC}) used for this option’s check
glyph and outline.
getDefaultAppearance()StringReturns the {@code /DA} default-appearance string for this option, or
null if not set.
setDefaultAppearance(da: String)Sets the {@code /DA} default-appearance string raw.
setDefaultAppearance(da: org.aspose.pdf.annotations.DefaultAppearance)Convenience overload — accepts a typed {@link org.aspose.pdf.annotations.DefaultAppearance}
and serialises it via its {@code toString()}.
getAppearance()AppearanceDictionaryReturns the typed appearance view over this option’s {@code /AP}
sub-dictionary.
regenerateAppearance()Rebuilds the {@code /AP/N} appearance streams for this option from its
current {@code /Rect}, {@code style} and {@link #getOptionName()}.

See Also

 English