public final class RadioButtonField extends ChoiceField
Class representing radio button field.
_FileSelect, _Password_disableUpdateAppearance| Constructor and Description |
|---|
RadioButtonField(Page page)
Constructor for RadiouttonField
|
RadioButtonField(Page page,
Rectangle rect) |
| 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.
|
OptionCollection |
getOptions()
Gets collection of options of the radio button.
|
int |
getPageIndex()
Gets index of page which contains this RadioButton field.
|
int |
getSelected()
Gets or sets index of selected item.
|
int |
getStyle()
Style of field box.
|
String |
getValue()
Gets or sets value of field.
|
void |
setPosition(Point point)
Move all subitems of radio button to specified positins on the page.
|
void |
setSelected(int value)
Sets index of selected option.
|
void |
setStyle(int value) |
void |
setValue(String value)
Sets value of the field.
|
void |
updateAppearances() |
addOption, deleteOption, getCommitImmediately, getMultiSelect, getSelectedItems, setCommitImmediately, setMultiSelect, setSelectedItemscopyTo, flatten, get_Item, get_Item, getAlternateName, getAnnotationIndex, getMappingName, getPartialName, getRect, getSyncRoot, isGroup, isSharedField, isSharedField, isSynchronized, iterator, recalculate, setAlternateName, setAnnotationIndex, setFieldImage, setFitIntoRectangle, setMappingName, setPartialName, setRect, sizeaccept, getActions, getDefaultAppearance, getExportable, getHighlighting, getOnActivated, getParent, getReadOnly, getRequired, setDefaultAppearance, setExportable, setHighlighting, setOnActivated, setReadOnly, setRequiredcreateAnnotation, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getStates, getWidth, initialize, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setWidthdeepClone, getMargin, isKeptWithNext, isKeptWithNext, setHorizontalAlignment, setMargin, setVerticalAlignmentpublic RadioButtonField(Page page)
Constructor for RadiouttonField
page - public int getStyle()
Style of field box.
public void setStyle(int value)
public int getSelected()
Gets or sets index of selected item. Numbering of items is started from 1.
getSelected in class ChoiceFieldpublic void setSelected(int value)
ChoiceFieldSets index of selected option. This property allows to change selection.
setSelected in class ChoiceFieldpublic OptionCollection getOptions()
Gets collection of options of the radio button.
getOptions in class ChoiceFieldpublic void updateAppearances()
updateAppearances in class Fieldpublic void add(RadioButtonOptionField newItem)
Adds new option field to RadioButton field
newItem - 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 - public void setPosition(Point point)
Move all subitems of radio button to specified positins on the page.
setPosition in class Fieldpoint - public int getPageIndex()
Gets index of page which contains this RadioButton field.
getPageIndex in class Fieldpublic String getValue()
Gets or sets value of field.
getValue in class ChoiceFieldpublic void setValue(String value)
ChoiceFieldSets value of the field.
setValue in class ChoiceFieldCopyright © 2018 Aspose. All Rights Reserved.