field-ag凯发旗舰厅



com.spire.doc.fields
class field

java.lang.object
  extended by com.spire.doc.ownerholder
      extended by com.spire.doc.documents.xml.documentserializable
          extended by com.spire.doc.documentobject
              extended by com.spire.doc.documentbase
                  extended by com.spire.doc.fields.paragraphbase
                      extended by com.spire.doc.fields.textrange
                          extended by com.spire.doc.fields.field
all implemented interfaces:
irunattrsource, idocumentobject, ifield, iparagraphbase, itextrange
direct known subclasses:
controlfield, formfield, iffield, mergefield, sequencefield

public class field
extends textrange
implements ifield

constructor summary
field(idocument doc)
          creates field object for specified document
 
method summary
 java.awt.image.bufferedimage downloadimage(java.lang.string url)
          get the image from the url
 java.lang.string getcode()
          gets the field code.
 documentobjecttype getdocumentobjecttype()
          gets the type of the document object.
 fieldmark getend()
          gets the field end.
 java.lang.string getfieldtext()
          gets filed displays text information.
 java.lang.string getpattern()
          returns field pattern.
 fieldmark getseparator()
          gets the field separator.
 textformat gettextformat()
          gets regular text format.
 fieldtype gettype()
          returns field type
 java.lang.string getvalue()
          gets the field value.
 boolean islocked()
          gets the lock property of the filed.if the field is locked,the field can't be updated.
 void islocked(boolean value)
          sets the lock property of the filed.if the field is locked,the field can't be updated.
 void setcode(java.lang.string value)
          sets the field code.
 void setend(fieldmark value)
          sets the field end.
 void setfieldtext(java.lang.string value)
          sets filed displays text information.
 void setpattern(java.lang.string value)
          sets field pattern.
 void settextformat(textformat value)
          sets regular text format.
 void settype(fieldtype value)
          sets field type
 
methods inherited from class com.spire.doc.fields.textrange
getcharacterformat, gettext, settext
 
methods inherited from class com.spire.doc.fields.paragraphbase
applycharacterformat, applystyle, getancestor, getchildobjects, getownerparagraph, getstylename, isdeleterevision, isinsertrevision
 
methods inherited from class com.spire.doc.documentobject
deepclone, getfirstchild, getlastchild, getnextsibling, getowner, getprevioussibling, iscomposite, tostring
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
methods inherited from interface com.spire.doc.interfaces.itextrange
applycharacterformat, getcharacterformat, gettext, settext
 
methods inherited from interface com.spire.doc.interfaces.iparagraphbase
applystyle, getownerparagraph, getstylename
 
methods inherited from interface com.spire.doc.interfaces.idocumentobject
deepclone, getdocument, getnextsibling, getowner, getprevioussibling, iscomposite
 
methods inherited from interface com.spire.doc.documents.irunattrsource
clearrunattrs, fetchinheritedrunattr, getdirectrunattr, getdirectrunattrbyindex, getdirectrunattrscount, setrunattr
 
constructor detail

field

public field(idocument doc)
creates field object for specified document
parameters:
doc - the document
method detail

islocked

public boolean islocked()
gets the lock property of the filed.if the field is locked,the field can't be updated.
returns:
boolean

islocked

public void islocked(boolean value)
sets the lock property of the filed.if the field is locked,the field can't be updated.
parameters:
value - boolean

gettextformat

public textformat gettextformat()
gets regular text format.
returns:
textformat

settextformat

public void settextformat(textformat value)
sets regular text format.
parameters:
value - textformat

getdocumentobjecttype

public documentobjecttype getdocumentobjecttype()
gets the type of the document object.
specified by:
getdocumentobjecttype in interface idocumentobject
overrides:
getdocumentobjecttype in class textrange
returns:
the type of the document object.

getpattern

public java.lang.string getpattern()
returns field pattern.
returns:
field pattern.

setpattern

public void setpattern(java.lang.string value)
sets field pattern.
parameters:
value - field pattern.

getvalue

public java.lang.string getvalue()
gets the field value.
returns:
the field value.

gettype

public fieldtype gettype()
returns field type
specified by:
gettype in interface ifield
returns:
field type

settype

public void settype(fieldtype value)
sets field type
specified by:
settype in interface ifield
parameters:
value - field type

getcode

public java.lang.string getcode()
gets the field code.
returns:
the field code.

setcode

public void setcode(java.lang.string value)
sets the field code.
parameters:
value - the field code.

getseparator

public fieldmark getseparator()
gets the field separator.
returns:
the field separator.

getend

public fieldmark getend()
gets the field end.
returns:
the field mark,type of fieldend.

setend

public void setend(fieldmark value)
sets the field end.
parameters:
value - the field mark,type of fieldend.

getfieldtext

public java.lang.string getfieldtext()
gets filed displays text information.
returns:
string

setfieldtext

public void setfieldtext(java.lang.string value)
sets filed displays text information.
parameters:
value - string

downloadimage

public java.awt.image.bufferedimage downloadimage(java.lang.string url)
get the image from the url
parameters:
url - the url
returns:
bufferedimage


网站地图