public class CPDFTextfieldAttr extends CPDFWidgetAttr implements IAttributeCallback
The attribute used when creating TextField form
Constructor and Description |
---|
CPDFTextfieldAttr(java.lang.String moduleName) |
Modifier and Type | Method and Description |
---|---|
CPDFWidget.BorderStyle |
getBorderStyle()
Gets the border style of TextField.
|
int |
getFontColor()
Gets the font color of widget, color range 0x00000000-0xFFFFFFFF
|
java.lang.String |
getFontName()
Gets the font of widget, more:
CPDFTextAttribute.FontNameHelper |
float |
getFontSize()
Gets font size.
|
CPDFTextAlignment |
getTextAlignment()
Gets the alignment of TextField form, more:
CPDFTextAlignment |
CPDFTextWidget.TextFiledSpecial |
getTextFiledSpecial()
Gets the Input format of this text field, more:
CPDFTextWidget.TextFiledSpecial |
boolean |
isMultiline()
Gets whether TextField form is multiline by default
|
boolean |
isPassword()
Gets whether text is intended for entering a secure password that should not be visible on the screen.
|
void |
onload()
Loads the attribute of TextField, this method does not need to be called by user.
|
void |
onstore()
Saves the attribute of TextField, this method does not need to be called by user.
|
void |
setBorderStyle(CPDFWidget.BorderStyle borderStyle)
Sets the border style of TextField.
|
void |
setFontColor(int fontColor)
Sets the font color of widget, color range 0x00000000-0xFFFFFFFF
|
void |
setFontName(java.lang.String fontName)
Sets the font of widget,more:
CPDFTextAttribute.FontNameHelper |
void |
setFontSize(float fontSize)
Sets font size.
|
void |
setMultiline(boolean multiline)
Sets display multi-line TextField form by default
|
void |
setPassword(boolean password)
Sets whether text is intended for entering a secure password that should not be visible on the screen.
|
void |
setTextAlignment(CPDFTextAlignment alignment)
Sets the alignment of TextField form
|
void |
setTextAttribute(CPDFTextAttribute textAttribute)
Sets the attributes corresponding to the font through TTextAttribute
CPDFTextAttribute |
void |
setTextFiledSpecial(CPDFTextWidget.TextFiledSpecial textFiledSpecial)
Sets the Input format of this text field, more:
CPDFTextWidget.TextFiledSpecial |
getBorderColor, getBorderWidth, getFieldName, getFillColor, setAttributeDataFetcher, setBorderColor, setBorderWidth, setFillColor, setiAttributeUpdateCallback
public boolean isMultiline()
public void setMultiline(boolean multiline)
multiline
- Display multi line textpublic boolean isPassword()
public void setPassword(boolean password)
password
- whether text is intended for entering a secure password that should not be visible on the screen.public CPDFTextAlignment getTextAlignment()
CPDFTextAlignment
public void setTextAlignment(CPDFTextAlignment alignment)
alignment
- Alignment, more: CPDFTextAlignment
public CPDFTextWidget.TextFiledSpecial getTextFiledSpecial()
CPDFTextWidget.TextFiledSpecial
public void setTextFiledSpecial(CPDFTextWidget.TextFiledSpecial textFiledSpecial)
CPDFTextWidget.TextFiledSpecial
textFiledSpecial
- Content filling formatpublic CPDFWidget.BorderStyle getBorderStyle()
public void setBorderStyle(CPDFWidget.BorderStyle borderStyle)
borderStyle
- Border stylepublic java.lang.String getFontName()
CPDFWidgetAttr
CPDFTextAttribute.FontNameHelper
public void setFontName(java.lang.String fontName)
CPDFWidgetAttr
CPDFTextAttribute.FontNameHelper
fontName
- Font name, more: CPDFTextAttribute.FontNameHelper
public float getFontSize()
CPDFWidgetAttr
public void setFontSize(float fontSize)
CPDFWidgetAttr
fontSize
- Font size.public int getFontColor()
CPDFWidgetAttr
public void setFontColor(int fontColor)
CPDFWidgetAttr
fontColor
- Font colorpublic void setTextAttribute(CPDFTextAttribute textAttribute)
CPDFTextAttribute
textAttribute
- Text Attributepublic void onload()
onload
in interface IAttributeCallback
public void onstore()
onstore
in interface IAttributeCallback