pdftextboxfieldwidget-ag凯发旗舰厅



com.spire.pdf.widget
class pdftextboxfieldwidget

java.lang.object
  extended by com.spire.pdf.fields.pdffield
      extended by com.spire.pdf.widget.pdffieldwidget
          extended by com.spire.pdf.widget.pdfstyledfieldwidget
              extended by com.spire.pdf.widget.pdftextboxfieldwidget
all implemented interfaces:
ipdfwrapper, ipdftextboxfield

public class pdftextboxfieldwidget
extends pdfstyledfieldwidget
implements ipdftextboxfield

represents the text box field of an existing pdf documents form.


constructor summary
pdftextboxfieldwidget( dictionary,  crosstable)
           
 
method summary
 pdfrgbcolor getbackcolor()
          gets the back color of the field
 java.awt.geom.rectangle2d getbounds()
          gets the bounds.
 java.lang.string getdefaultvalue()
          gets the default value of the field.
 pdffontbase getfont()
          gets the font.
 pdfrgbcolor getforecolor()
          gets the fore color of the field.
 pdfhighlightmode gethighlightmode()
          gets the highlightmode of the field.
 boolean getinsertspaces()
          meaningful only if the maxlength property is set and the multiline, password properties are false.
 int getmaxlength()
          gets the maximum length of the field, in characters.
 boolean getmultiline()
          gets a value indicating whether this is multiline.
 boolean getpassword()
          gets a value indicating whether this is password field.
 boolean getscrollable()
          gets a value indicating whether this is scrollable.
 boolean getspellcheck()
          gets a value indicating whether to check spelling.
 java.lang.string gettext()
          gets value of the text box field.
 pdftextalignment gettextalignment()
          gets the text alignment in a text box.
 pdftextboxwidgetitemcollection getwidgetitems()
          gets the collection of text box field items.
 void setbackcolor(pdfrgbcolor value)
          sets the back color of the field
 void setdefaultvalue(java.lang.string value)
          sets the default value of the field.
 void setfont(pdffontbase value)
          sets the font.
 void setforecolor(pdfrgbcolor value)
          sets the fore color of the field.
 void sethighlightmode(pdfhighlightmode value)
          sets the highlightmode of the field.
 void setinsertspaces(boolean value)
           
 void setmaxlength(int value)
           
 void setmultiline(boolean value)
           
 void setpassword(boolean value)
           
 void setscrollable(boolean value)
           
 void setspellcheck(boolean value)
           
 void settext(java.lang.string value)
          sets the text
 void settextalignment(pdftextalignment value)
          sets the text alignment in a text box.
 
methods inherited from class com.spire.pdf.widget.pdfstyledfieldwidget
getactions, getbordercolor, getborderstyle, getborderwidth, getgotfocus, getlocation, getlostfocus, getmousedown, getmouseenter, getmouseleave, getsize, getvisible, setbordercolor, setborderstyle, setborderwidth, setbounds, setgotfocus, setlocation, setlostfocus, setmousedown, setmouseenter, setmouseleave, setsize
 
methods inherited from class com.spire.pdf.widget.pdffieldwidget
getname, getpage, gettooltip, importfieldvalue, setreadonly, setrequired
 
methods inherited from class com.spire.pdf.fields.pdffield
getexport, getflatten, getform, getmappingname, getreadonly, getrequired, setexport, setflatten, settooltip
 
methods inherited from interface com.spire.pdf.widget.ipdftextboxfield
getname
 
constructor detail

pdftextboxfieldwidget

public pdftextboxfieldwidget( dictionary,
                              crosstable)
method detail

getbackcolor

public pdfrgbcolor getbackcolor()
gets the back color of the field
overrides:
getbackcolor in class pdfstyledfieldwidget

getbounds

public java.awt.geom.rectangle2d getbounds()
gets the bounds.
overrides:
getbounds in class pdfstyledfieldwidget

getforecolor

public pdfrgbcolor getforecolor()
gets the fore color of the field.

setforecolor

public void setforecolor(pdfrgbcolor value)
sets the fore color of the field.

gettextalignment

public pdftextalignment gettextalignment()
gets the text alignment in a text box.

settextalignment

public void settextalignment(pdftextalignment value)
sets the text alignment in a text box.

gethighlightmode

public pdfhighlightmode gethighlightmode()
gets the highlightmode of the field.

sethighlightmode

public void sethighlightmode(pdfhighlightmode value)
sets the highlightmode of the field.

gettext

public java.lang.string gettext()
gets value of the text box field.

settext

public void settext(java.lang.string value)
sets the text
parameters:
value - text files

getfont

public pdffontbase getfont()
gets the font.
overrides:
getfont in class pdfstyledfieldwidget

setfont

public void setfont(pdffontbase value)
sets the font.
overrides:
setfont in class pdfstyledfieldwidget

getdefaultvalue

public java.lang.string getdefaultvalue()
gets the default value of the field.

setdefaultvalue

public void setdefaultvalue(java.lang.string value)
sets the default value of the field.

getspellcheck

public boolean getspellcheck()
gets a value indicating whether to check spelling.

setspellcheck

public void setspellcheck(boolean value)

getinsertspaces

public boolean getinsertspaces()
meaningful only if the maxlength property is set and the multiline, password properties are false. if set, the field is automatically divided into as many equally spaced positions, or combs, as the value of maxlength, and the text is laid out into those combs.

setinsertspaces

public void setinsertspaces(boolean value)

getmultiline

public boolean getmultiline()
gets a value indicating whether this is multiline.

setmultiline

public void setmultiline(boolean value)

getpassword

public boolean getpassword()
gets a value indicating whether this is password field.

setpassword

public void setpassword(boolean value)

getscrollable

public boolean getscrollable()
gets a value indicating whether this is scrollable.

setscrollable

public void setscrollable(boolean value)

getmaxlength

public int getmaxlength()
gets the maximum length of the field, in characters.

setmaxlength

public void setmaxlength(int value)

getwidgetitems

public pdftextboxwidgetitemcollection getwidgetitems()
gets the collection of text box field items.

setbackcolor

public void setbackcolor(pdfrgbcolor value)
sets the back color of the field


网站地图