public final class RadioButtonField extends ChoiceField
Class representing radio button field.
_FileSelect, _Password
_disableUpdateAppearance
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.
|
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.
|
int |
getStyle()
Style of field box.
|
String |
getValue()
Gets 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 item.
|
void |
setStyle(int 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, setSelectedItems
add, clear, contains, copyTo, copyTo, flatten, get_Item, get_Item, getAlternateName, getAnnotationIndex, getMappingName, getMaxFontSize, getPartialName, getRect, getSyncRoot, getTabOrder, isFitIntoRectangle, isGroup, isReadOnly, isSharedField, isSynchronized, iterator, recalculate, remove, setAlternateName, setAnnotationIndex, setFitIntoRectangle, setMappingName, setMaxFontSize, setPartialName, setRect, setSharedField, setTabOrder, size
accept, getAnnotationActions, getAnnotationType, 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, getPdfActions, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setStructParent, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidth
deepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public 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 int getStyle()
Style of field box.
BoxStyle
public void setStyle(int value)
Style of field box.
value
- BoxStyle valueBoxStyle
public int getSelected()
Gets index of selected item. Numbering of items is started from 1.
getSelected
in class ChoiceField
public void setSelected(int value)
Sets index of selected item. Numbering of items is started from 1.
setSelected
in class ChoiceField
value
- int valuepublic OptionCollection getOptions()
Gets collection of options of the radio button.
getOptions
in class ChoiceField
public void updateAppearances()
Update appearances value.
updateAppearances
in class Field
public 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 ChoiceField
optionName
- 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 Field
point
- Sets position of RadioButton field annotations.public int getPageIndex()
Gets index of page which contains this RadioButton field.
getPageIndex
in class Field
public String getValue()
Gets value of field.
getValue
in class ChoiceField
public void setValue(String value)
Sets value of field.
setValue
in class ChoiceField
value
- String value