public class CPDFTextWidget extends CPDFWidget
| Modifier and Type | Class and Description |
|---|---|
static class |
CPDFTextWidget.TextFiledSpecial
Types of text field.
|
CPDFWidget.BorderStyle, CPDFWidget.CheckStyle, CPDFWidget.WidgetTypeCPDFAnnotation.AppearanceType, CPDFAnnotation.TypeannotPtr, apRotation, pdfPage| Modifier and Type | Method and Description |
|---|---|
int |
getFontColor()
Gets the font color of text content in TextField.
|
java.lang.String |
getFontName()
Gets the text content font in TextField, get the font type in according to font names.
|
float |
getFontSize()
Gets the font size of text content in TextField.
|
java.lang.String |
getText()
Gets the text content in TextField.
|
CPDFTextAlignment |
getTextAlignment()
Gets the the text alignment in TextField, more:
CPDFTextAlignment |
CPDFTextWidget.TextFiledSpecial |
getTextFieldSpecial()
Gets the content format of TextField, format type:
CPDFTextWidget.TextFiledSpecial |
boolean |
isMultiLine()
Whether to display multiline PDF text fields.
|
boolean |
isPassword()
Whether the TextField content display password, password :*****
|
boolean |
resetForm()
Resets TextField forms, content of TextField is cleared up
|
boolean |
setFontColor(int color)
Sets the font color of text content in TextField.
|
boolean |
setFontName(java.lang.String fontName)
Sets the font format of text content, get the font name.
|
boolean |
setFontSize(float fontsize)
Sets the font size of text content in TextField.
|
boolean |
setMultiLine(boolean isMultiLine)
Sets to display multiline PDF text fields.
|
boolean |
setText(java.lang.String text)
Sets the text content in TextField.
|
boolean |
setTextAlignment(CPDFTextAlignment alignment)
Sets the text alignment in TextField, more:
CPDFTextAlignment |
boolean |
setTextFieldSpecial(boolean isDateSpecial)
Sets the content format of TextField, format type:
CPDFTextWidget.TextFiledSpecial |
clearBorderColor, clearFillColor, getBorderColor, getBorderStyles, getBorderWidth, getCheckColor, getCheckStyle, getFieldFlag, getFieldName, getFieldType, getFillAlpha, getFillColor, getRect, getWidgetType, isReadOnly, setBorderColor, setBorderStyles, setBorderWidth, setCheckColor, setCheckStyle, setFieldFlag, setFieldName, setFieldType, setFillAlpha, setFillColor, setReadOnly, setRect, updateAp, updateApaddToPage, clearFilledRGBColor, clearFilledTransparency, close, getAppearanceByPixel, getApRotation, getBgRGBColor, getBorderRGBColor, getBorderStyle, getContent, getCreationDate, getFilledRGBColor, getFilledTransparency, getFlags, getName, getOverLayText, getRecentlyModifyDate, getRGBColor, getTitle, getTransparency, getType, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isValid, removeAp, removeFromPage, setAllowCorrectAnnotationAp, setBgRGBColor, setBorderRGBColor, setBorderStyle, setContent, setCreationDate, setFilledRGBColor, setFilledTransparency, setFlags, setHidden, setLocked, setName, setOverLayText, setRecentlyModifyDate, setRGBColor, setTitle, setTransparency, updateApWithBitmap, updateApWithImagepublic boolean setText(java.lang.String text)
text - Text content.public java.lang.String getText()
public boolean isMultiLine()
public boolean setMultiLine(boolean isMultiLine)
isMultiLine - Whether to display multiline PDF text fields.public boolean isPassword()
public boolean setFontName(java.lang.String fontName)
fontName - Font name of text.public java.lang.String getFontName()
public boolean setFontSize(float fontsize)
fontsize - Font size.public float getFontSize()
public boolean setFontColor(int color)
color - Text color.public int getFontColor()
public boolean setTextAlignment(CPDFTextAlignment alignment)
CPDFTextAlignmentalignment - Alignment.public CPDFTextAlignment getTextAlignment()
CPDFTextAlignmentpublic boolean setTextFieldSpecial(boolean isDateSpecial)
CPDFTextWidget.TextFiledSpecialisDateSpecial - Whether to be date format.public CPDFTextWidget.TextFiledSpecial getTextFieldSpecial()
CPDFTextWidget.TextFiledSpecialpublic boolean resetForm()
resetForm in class CPDFWidget