|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.merger.forms.PdfFormField
public class PdfFormField
Representing a form field in a PDF document.
Licensing:
This class is a DynamicPDF Merger Standard Edition feature.
One of the following licenses is required for non-evaluation usage:
Method Summary | |
---|---|
Label |
createLabel(Page page,
float xOffset,
float yOffset,
java.lang.String text)
Creates a |
Label |
createLabel(Page page,
float xOffset,
float yOffset,
java.lang.String text,
Font font,
float fontSize)
Creates a Label object and adds it to the given page at the
coordinates of the form field. |
Label |
createLabel(Page page,
float xOffset,
float yOffset,
java.lang.String text,
Font font,
float fontSize,
TextAlign align)
Creates a Label object and adds it to the given page at the
coordinates of the form field. |
Label |
createLabel(Page page,
float xOffset,
float yOffset,
java.lang.String text,
Font font,
float fontSize,
TextAlign align,
Color textColor)
Creates a Label object and adds it to the given page at the
coordinates of the form field. |
Label |
createLabel(Page page,
java.lang.String text)
Creates a Label object and adds it to the given page at the coordinates of the form field. |
Label |
createLabel(Page page,
java.lang.String text,
Font font,
float fontSize)
Creates a Label object and adds it to the given page at the
coordinates of the form field. |
Label |
createLabel(Page page,
java.lang.String text,
Font font,
float fontSize,
TextAlign align)
Creates a Label object and adds it to the given page at the
coordinates of the form field. |
Label |
createLabel(Page page,
java.lang.String text,
Font font,
float fontSize,
TextAlign align,
Color textColor)
Creates a Label object and adds it to the given page at the
coordinates of the form field. |
Align |
getAlign()
Gets the text alignment for the field. |
RgbColor |
getBackgroundColor()
Gets the background color of a form field. |
DeviceColor |
getBorderColor()
Gets the border color of a form field. |
BorderStyle |
getBorderStyle()
Gets the BorderStyle |
PdfFormFieldList |
getChildFields()
Gets a collection of child form fields. |
boolean |
getComb()
|
boolean |
getCombo()
|
boolean |
getCommitOnSelChange()
|
java.lang.String |
getDefaultValue()
Gets the default value of the form field. |
boolean |
getDoNotScroll()
|
boolean |
getDoNotSpellCheck()
|
boolean |
getEdit()
|
java.lang.String |
getExportValue()
Gets the export value of the form field. |
boolean |
getFileSelect()
|
FormFieldFlags |
getFlags()
Deprecated. as of DynamicPDF v8.0.0 replace by relevant flag name properties present on this class. |
Font |
getFont()
Gets the font for the field. |
float |
getFontSize()
Gets the fontsize for the field. |
protected PdfForm |
getForm()
Gets the form the form field belongs to. |
java.lang.String |
getFullName()
Gets the full name of the form field. |
float |
getHeight()
Gets the height of the form field. |
boolean |
getMultiline()
|
boolean |
getMultiSelect()
|
java.lang.String |
getName()
Gets the partial name of the form field. |
boolean |
getNoExport()
|
boolean |
getNone()
|
boolean |
getNoToggleToOff()
|
int |
getOriginalPageNumber()
Returns the original page number of the form field in the original PDF document. |
protected PdfFormField |
getParent()
Gets the parent form field. |
boolean |
getPassword()
|
boolean |
getPushbutton()
|
boolean |
getRadio()
|
boolean |
getRadiosInUnison()
|
boolean |
getReadOnly()
|
boolean |
getRequired()
|
boolean |
getRichText()
|
int |
getRotate()
Gets the angle of a form field. |
boolean |
getSort()
|
DeviceColor |
getTextColor()
Gets the color of the text for the field. |
java.lang.String |
getValue()
Gets the value of the form field. |
float |
getWidth()
Gets the width of the form field. |
float |
getX(Page page)
Returns the X coordinate of the form field on the given page. |
float |
getY(Page page)
Returns the Y coordinate of the form field on the given page. |
boolean |
hasChildFields()
Gets the type of the form field. |
void |
positionPageElement(PageElement pageElement,
Page page)
Sets the position of a page element to the coordinates of the form field. |
void |
setFont(Font font)
Sets the font for the field. |
void |
setFontSize(float value)
Sets the fontsize for the field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean hasChildFields()
public boolean getNone()
public boolean getReadOnly()
public boolean getRequired()
public boolean getNoExport()
public boolean getMultiline()
public boolean getPassword()
public boolean getCombo()
public boolean getEdit()
public boolean getSort()
public boolean getFileSelect()
public boolean getMultiSelect()
public boolean getDoNotSpellCheck()
public boolean getDoNotScroll()
public boolean getComb()
public boolean getNoToggleToOff()
public boolean getRadio()
public boolean getPushbutton()
public boolean getRadiosInUnison()
public boolean getCommitOnSelChange()
public boolean getRichText()
public int getOriginalPageNumber()
public void positionPageElement(PageElement pageElement, Page page)
pageElement
- Page element whose coordinates should be set.page
- Page that contains the page element.PageElement
,
Page
public float getX(Page page)
page
- Page for which the X coordinates are returned.
Page
public float getY(Page page)
page
- Page for which the Y coordinates are returned.
Page
public Label createLabel(Page page, float xOffset, float yOffset, java.lang.String text, Font font, float fontSize)
Label
object and adds it to the given page at the
coordinates of the form field.
page
- Page to which the label will be added.xOffset
- The X coordinate offset for the label.yOffset
- The Y coordinate offset for the label.text
- The text of the label.font
- The font to use for the label.fontSize
- The font size to use for the label.
Label
object that was added to the page.Page
,
Font
,
Label
public Label createLabel(Page page, float xOffset, float yOffset, java.lang.String text, Font font, float fontSize, TextAlign align)
Label
object and adds it to the given page at the
coordinates of the form field.
page
- Page to which the label will be added.xOffset
- The X coordinate offset for the label.yOffset
- The Y coordinate offset for the label.text
- The text of the label.font
- The font to use for the label.fontSize
- The font size to use for the label.align
- The text alignment of the label.
Label
object that was added to the page.Page
,
Font
,
TextAlign
,
Label
public Label createLabel(Page page, float xOffset, float yOffset, java.lang.String text, Font font, float fontSize, TextAlign align, Color textColor)
Label
object and adds it to the given page at the
coordinates of the form field.
page
- Page to which the label will be added.xOffset
- The X coordinate offset for the label.yOffset
- The Y coordinate offset for the label.text
- The text of the label.font
- The font to use for the label.fontSize
- The font size to use for the label.align
- The text alignment of the label.textColor
- The text color of the label.
Label
object that was added to the page.Page
,
Font
,
TextAlign
,
Color
,
Label
public Label createLabel(Page page, float xOffset, float yOffset, java.lang.String text)
page
- Page to which the label will be added.xOffset
- The X coordinate offset for the label.yOffset
- The Y coordinate offset for the label.text
- The text of the label.
Label
,
Page
public Label createLabel(Page page, java.lang.String text, Font font, float fontSize)
Label
object and adds it to the given page at the
coordinates of the form field.
page
- Page to which the label will be added.text
- The text of the label.font
- The font to use for the label.fontSize
- The font size to use for the label.
Label
object that was added to the page.Page
,
Font
,
Label
public Label createLabel(Page page, java.lang.String text, Font font, float fontSize, TextAlign align)
Label
object and adds it to the given page at the
coordinates of the form field.
page
- Page to which the label will be added.text
- The text of the label.font
- The font to use for the label.fontSize
- The font size to use for the label.align
- The text alignment of the label.
Label
object that was added to the page.Page
,
Font
,
TextAlign
,
Label
public Label createLabel(Page page, java.lang.String text, Font font, float fontSize, TextAlign align, Color textColor)
Label
object and adds it to the given page at the
coordinates of the form field.
page
- Page to which the label will be added.text
- The text of the label.font
- The font to use for the label.fontSize
- The font size to use for the label.align
- The text alignment of the label.textColor
- The text color of the label.
Label
object that was added to the page.Page
,
Font
,
TextAlign
,
Color
,
Label
public Label createLabel(Page page, java.lang.String text)
Label
object and adds it to the given page at the coordinates of the form field.
page
- Page to which the label will be added.text
- The text of the label.
Page
,
Label
public float getWidth()
public float getHeight()
protected PdfFormField getParent()
protected PdfForm getForm()
public java.lang.String getDefaultValue()
public java.lang.String getValue()
public java.lang.String getExportValue()
public PdfFormFieldList getChildFields()
public FormFieldFlags getFlags()
public java.lang.String getName()
public java.lang.String getFullName()
public BorderStyle getBorderStyle()
BorderStyle .
- Returns:
- the border style of a form field.
- See Also:
BorderStyle
public DeviceColor getBorderColor()
public RgbColor getBackgroundColor()
public DeviceColor getTextColor()
public int getRotate()
public Font getFont()
public void setFont(Font font)
font
- the font for the field.public float getFontSize()
public void setFontSize(float value)
value
- the fontsize for the field.public Align getAlign()
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |