public final class RadioButtonField extends ChoiceField
Class representing radio button field.
_FileSelect, _Password| Constructor and Description |
|---|
RadioButtonField(IDocument doc)
Constructor for RadioButtonField.
|
RadioButtonField(Page page)
Constructor for RadiouttonField
|
RadioButtonField(Page page,
Rectangle rect)
Sets radio button field
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(RadioButtonOptionField newItem)
Adds new option field to RadioButton field
|
void |
addOption(String optionName)
Add option to radion button.
|
void |
addOption(String optionName,
Rectangle rect)
Add to radio button option with specifed rectangle.
|
boolean |
getNoToggleToOff()
Get or sets the flag that allows the radiobutton to have no selected value.
|
OptionCollection |
getOptions()
Gets collection of options of the radio button.
|
int |
getPageIndex()
Gets index of page which contains this RadioButton field.
|
int |
getSelected()
Gets index of selected item.
|
BoxStyle |
getStyle()
Style of field box.
|
String |
getValue()
Gets value of field.
|
void |
setNoToggleToOff(boolean value)
Get or sets the flag that allows the radiobutton to have no selected value.
|
void |
setPosition(Point point)
Move all subitems of radio button to specified positins on the page.
|
void |
setSelected(int value)
Sets index of selected item.
|
void |
setStyle(BoxStyle value)
Style of field box.
|
void |
setValue(String value)
Sets value of field.
|
void |
updateAppearances()
Update appearances value.
|
addOption, deleteOption, getCommitImmediately, getMultiSelect, getSelectedItems, setCommitImmediately, setMultiSelect, setOptions, setSelectedItemsadd, clear, contains, copyTo_Rename_Namesake, copyTo, copyTo, executeFieldJavaScript, flatten, get_Item, get_Item, getAlternateName, getAnnotationIndex, getMappingName, getMaxFontSize, getMinFontSize, getPartialName, getRect, getSyncRoot, getTabOrder, isFitIntoRectangle, isGroup, isReadOnly, isSharedField, isSynchronized, iterator, recalculate, remove, setAlternateName, setAnnotationIndex, setFitIntoRectangle, setMappingName, setMaxFontSize, setMinFontSize, setPartialName, setRect, setSharedField, setTabOrder, sizeaccept, getAnnotationActions, getAnnotationType, getCheckedStateName, getDefaultAppearance, getExportable, getHighlighting, getOnActivated, getParent, getReadOnly, getRequired, setDefaultAppearance, setExportable, setHighlighting, setOnActivated, setReadOnly, setRequiredchangeAfterResize, createAnnotation, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPdfActions, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidthdeepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndexequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic RadioButtonField(Page page, Rectangle rect)
Sets radio button field
page - Page objectrect - Rectangle objectpublic RadioButtonField(Page page)
Constructor for RadiouttonField
page - Page where radio button will be placed.public RadioButtonField(IDocument doc)
Constructor for RadioButtonField.
doc - Document where radio button will be created.public BoxStyle getStyle()
Style of field box.
BoxStylepublic void setStyle(BoxStyle value)
Style of field box.
value - BoxStyle valueBoxStylepublic int getSelected()
Gets index of selected item. Numbering of items is started from 1.
getSelected in class ChoiceFieldpublic void setSelected(int value)
Sets index of selected item. Numbering of items is started from 1.
setSelected in class ChoiceFieldvalue - int valuepublic OptionCollection getOptions()
Gets collection of options of the radio button.
getOptions in class ChoiceFieldpublic final boolean getNoToggleToOff()
Get or sets the flag that allows the radiobutton to have no selected value. If , exactly one radio button shall be selected at all times; selecting the currently selected button has no effect. If , clicking the selected button deselects it, leaving no button selected.
public final void setNoToggleToOff(boolean value)
Get or sets the flag that allows the radiobutton to have no selected value. If , exactly one radio button shall be selected at all times; selecting the currently selected button has no effect. If , clicking the selected button deselects it, leaving no button selected.
value - boolean valuepublic void updateAppearances()
Update appearances value.
updateAppearances in class Fieldpublic void add(RadioButtonOptionField newItem)
Adds new option field to RadioButton field
newItem - Item which should be added.public void addOption(String optionName, Rectangle rect)
Add to radio button option with specifed rectangle.
optionName - Name of new option.rect - New item rectangle.public void addOption(String optionName)
Add option to radion button.
addOption in class ChoiceFieldoptionName - Name of the option which will be added.public void setPosition(Point point)
Move all subitems of radio button to specified positins on the page.
setPosition in class Fieldpoint - Sets position of RadioButton field annotations.public int getPageIndex()
Gets index of page which contains this RadioButton field.
getPageIndex in class Fieldpublic String getValue()
Gets value of field.
getValue in class ChoiceFieldpublic void setValue(String value)
Sets value of field.
setValue in class ChoiceFieldvalue - String valueCopyright © 2025 Aspose. All Rights Reserved.