public class TextBoxField extends Field
Class representing text box field.
_FileSelect, _Password
_disableUpdateAppearance
Constructor and Description |
---|
TextBoxField()
Create instance of TextBoxField.
|
TextBoxField(IDocument doc)
Constructor which should be used with Generator.
|
TextBoxField(IDocument doc,
Rectangle rect)
Constructor of TextBox field.
|
TextBoxField(Page page,
Rectangle rect)
Constructor of TextBox field.
|
Modifier and Type | Method and Description |
---|---|
void |
addBarcode(String code)
Adds barcode 128 into the field.
|
void |
addImage(BufferedImage image)
Adds image into the field resources an draws it.
|
boolean |
getForceCombs()
Gets flag which indicates is field divided into spaced positions.
|
int |
getMaxLen()
Gets maximum length of text in the field.
|
boolean |
getMultiline()
Gets multiline flag of the field.
|
boolean |
getScrollable()
Gets scrollable flag of field.
|
boolean |
getSpellCheck()
Gets spellcheck flag for field.
|
int |
getTextVerticalAlignment()
Gets or sets text vertical alignment for annotation.
|
String |
getValue()
Gets value of the field.
|
void |
setForceCombs(boolean value)
Sets flag which indicates is field divided into spaced positions.
|
void |
setJustification(boolean value)
Sets justification
|
void |
setMaxLen(int value)
Sets maximum length of text in the field.
|
void |
setMultiline(boolean value)
Sets multiline flag of the field.
|
void |
setScrollable(boolean value)
Sets scrollable flag of field.
|
void |
setSpellCheck(boolean value)
Sets spellcheck flag for field.
|
void |
setTextVerticalAlignment(int value)
Gets or sets text vertical alignment for annotation.
|
void |
setValue(String value)
Sets value of the field.
|
add, clear, contains, copyTo, copyTo, flatten, get_Item, get_Item, getAlternateName, getAnnotationIndex, getMappingName, getMaxFontSize, getPageIndex, getPartialName, getRect, getSyncRoot, getTabOrder, isFitIntoRectangle, isGroup, isReadOnly, isSharedField, isSynchronized, iterator, recalculate, remove, setAlternateName, setAnnotationIndex, setFitIntoRectangle, setMappingName, setMaxFontSize, setPartialName, setPosition, setRect, setSharedField, setTabOrder, size, updateAppearances
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 TextBoxField(IDocument doc)
Constructor which should be used with Generator.
doc
- Document where field will be created.public TextBoxField()
Create instance of TextBoxField.
public TextBoxField(Page page, Rectangle rect)
Constructor of TextBox field.
page
- Page where text field is placed.rect
- Rectangle where the text field will be placed on the page.public boolean getMultiline()
Gets multiline flag of the field. If Multiline is true field can contain multiple lines of text.
public void setMultiline(boolean value)
Sets multiline flag of the field. If Multiline is true field can contain multiple lines of text.
value
- boolean valuepublic boolean getSpellCheck()
Gets spellcheck flag for field. If true field shall be spell checked.
public void setSpellCheck(boolean value)
Sets spellcheck flag for field. If true field shall be spell checked.
value
- boolean valuepublic boolean getScrollable()
Gets scrollable flag of field. If true field can be scrolled.
public void setScrollable(boolean value)
Sets scrollable flag of field. If true field can be scrolled.
value
- boolean valuepublic boolean getForceCombs()
Gets flag which indicates is field divided into spaced positions.
public void setForceCombs(boolean value)
Sets flag which indicates is field divided into spaced positions.
value
- boolean valuepublic int getMaxLen()
Gets maximum length of text in the field.
public void setMaxLen(int value)
Sets maximum length of text in the field.
value
- int valuepublic final int getTextVerticalAlignment()
Gets or sets text vertical alignment for annotation.
public final void setTextVerticalAlignment(int value)
Gets or sets text vertical alignment for annotation.
value
- VerticalAlignment elementpublic String getValue()
Gets value of the field.
public void setValue(String value)
Sets value of the field.
public void addImage(BufferedImage image)
Adds image into the field resources an draws it.
image
- Image to add into text field.public void addBarcode(String code)
Adds barcode 128 into the field. Field value will be changed onto the code and field become read only.
code
- The text to generate barcode 128.public void setJustification(boolean value)
Sets justification
value
- boolean value