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, setSelectedItems
copyTo, flatten, get_Item, get_Item, getAlternateName, getAnnotationIndex, getMappingName, getPartialName, getRect, getSyncRoot, isGroup, isSharedField, isSharedField, isSynchronized, iterator, recalculate, setAlternateName, setAnnotationIndex, setFieldImage, setFitIntoRectangle, setMappingName, setPartialName, setRect, size
accept, getActions, getDefaultAppearance, getExportable, getHighlighting, getOnActivated, getParent, getReadOnly, getRequired, setDefaultAppearance, setExportable, setHighlighting, setOnActivated, setReadOnly, setRequired
createAnnotation, 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, setWidth
deepClone, getMargin, isKeptWithNext, isKeptWithNext, setHorizontalAlignment, setMargin, setVerticalAlignment
public 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 ChoiceField
public void setSelected(int value)
ChoiceField
Sets index of selected option. This property allows to change selection.
setSelected
in class ChoiceField
public OptionCollection getOptions()
Gets collection of options of the radio button.
getOptions
in class ChoiceField
public void updateAppearances()
updateAppearances
in class Field
public 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 ChoiceField
optionName
- public void setPosition(Point point)
Move all subitems of radio button to specified positins on the page.
setPosition
in class Field
point
- public int getPageIndex()
Gets index of page which contains this RadioButton field.
getPageIndex
in class Field
public String getValue()
Gets or sets value of field.
getValue
in class ChoiceField
public void setValue(String value)
ChoiceField
Sets value of the field.
setValue
in class ChoiceField
Copyright © 2018 Aspose. All Rights Reserved.