pdfbuttonfield-ag凯发旗舰厅



com.spire.pdf.fields
class pdfbuttonfield

java.lang.object
  extended by com.spire.pdf.fields.pdffield
      extended by com.spire.pdf.fields.pdfstyledfield
          extended by com.spire.pdf.fields.pdfappearancefield
              extended by com.spire.pdf.fields.pdfbuttonfield
all implemented interfaces:
ipdfwrapper

public class pdfbuttonfield
extends pdfappearancefield

represents button field in the pdf form.


constructor summary
pdfbuttonfield()
           
pdfbuttonfield(pdfpagebase page, java.lang.string name)
          initializes a new instance of the class.
 
method summary
 pdfimage getalternateicon()
          gets the widget annotation's alternate icon displayed when the mouse button is pressed within its active area, only available in push mode.
 java.lang.string getalternatetext()
          gets the text displayed when the mouse button is pressed within the annotation's active area, only available in push mode.
 pdfhighlightmode gethighlightmode()
          gets the highlightmode
 pdfimage geticon()
          gets the widget annotation's normal icon displayed when it is not interacting with the user.
 pdfbuttoniconlayout geticonlayout()
          defining the icon layout.
 pdfimage getrollovericon()
          gets the widget annotation's rollover icon displayed when the user rolls the cursor into its active area without pressing the mouse button, only available in push mode.
 java.lang.string getrollovertext()
          gets the text displayed when the user rolls the cursor into the annotation's active area without pressing the mouse button, only available in push mode.
 void setalternateicon(pdfimage value)
          sets the widget annotation's alternate icon displayed when the mouse button is pressed within its active area, only available in push mode.
 void setalternatetext(java.lang.string value)
          sets the text displayed when the mouse button is pressed within the annotation's active area, only available in push mode.
 void setfont(pdffontbase value)
          sets the font
 void sethighlightmode(pdfhighlightmode highlightmode)
          sets the highlightmode
 void seticon(pdfimage value)
          sets the widget annotation's normal icon displayed when it is not interacting with the user.
 void setlayoutmode(pdfbuttonlayoutmode value)
          sets the button layout mode.
 void setrollovericon(pdfimage value)
          sets the widget annotation's rollover icon displayed when the user rolls the cursor into its active area without pressing the mouse button, only available in push mode.
 void setrollovertext(java.lang.string value)
          sets the text displayed when the user rolls the cursor into the annotation's active area without pressing the mouse button, only available in push mode.
 void settext(java.lang.string value)
          sets the text
 
methods inherited from class com.spire.pdf.fields.pdfstyledfield
getactions, getbackcolor, getborderstyle, getborderwidth, getbounds, getforecolor, getlocation, getsize, gettextalignment, getvisible, setbackcolor, setbordercolor, setborderstyle, setborderwidth, setbounds, setforecolor, setlocation, setsize, settextalignment, setvisible
 
methods inherited from class com.spire.pdf.fields.pdffield
getexport, getflatten, getform, getmappingname, getname, getpage, getreadonly, getrequired, gettooltip, setexport, setflatten, setreadonly, settooltip
 
constructor detail

pdfbuttonfield

public pdfbuttonfield(pdfpagebase page,
                      java.lang.string name)
initializes a new instance of the class.
parameters:
page - the page where the fields should be placed.
name - the name of the button.

pdfbuttonfield

public pdfbuttonfield()
method detail

gethighlightmode

public pdfhighlightmode gethighlightmode()
gets the highlightmode
overrides:
gethighlightmode in class pdfstyledfield

sethighlightmode

public void sethighlightmode(pdfhighlightmode highlightmode)
sets the highlightmode
overrides:
sethighlightmode in class pdfstyledfield
parameters:
highlightmode -

settext

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

setfont

public void setfont(pdffontbase value)
sets the font
overrides:
setfont in class pdfstyledfield
parameters:
value - this is pdffontbase object

setlayoutmode

public void setlayoutmode(pdfbuttonlayoutmode value)
sets the button layout mode.

getalternatetext

public java.lang.string getalternatetext()
gets the text displayed when the mouse button is pressed within the annotation's active area, only available in push mode.

setalternatetext

public void setalternatetext(java.lang.string value)
sets the text displayed when the mouse button is pressed within the annotation's active area, only available in push mode.

getrollovertext

public java.lang.string getrollovertext()
gets the text displayed when the user rolls the cursor into the annotation's active area without pressing the mouse button, only available in push mode.

setrollovertext

public void setrollovertext(java.lang.string value)
sets the text displayed when the user rolls the cursor into the annotation's active area without pressing the mouse button, only available in push mode.

geticonlayout

public pdfbuttoniconlayout geticonlayout()
defining the icon layout.

geticon

public pdfimage geticon()
gets the widget annotation's normal icon displayed when it is not interacting with the user.

seticon

public void seticon(pdfimage value)
sets the widget annotation's normal icon displayed when it is not interacting with the user.

getalternateicon

public pdfimage getalternateicon()
gets the widget annotation's alternate icon displayed when the mouse button is pressed within its active area, only available in push mode.

setalternateicon

public void setalternateicon(pdfimage value)
sets the widget annotation's alternate icon displayed when the mouse button is pressed within its active area, only available in push mode.

getrollovericon

public pdfimage getrollovericon()
gets the widget annotation's rollover icon displayed when the user rolls the cursor into its active area without pressing the mouse button, only available in push mode.

setrollovericon

public void setrollovericon(pdfimage value)
sets the widget annotation's rollover icon displayed when the user rolls the cursor into its active area without pressing the mouse button, only available in push mode.


网站地图