|
|
__init__(self,
name=None,
value=None,
typ=None,
required=0,
label=None,
desc=None,
options=[],
node=None)
Create new data field of specified name,value and type. |
source code
|
|
|
|
setRequired(self,
req=1)
Change the state of the 'required' flag. |
source code
|
|
|
|
isRequired(self)
Returns in this field a required one. |
source code
|
|
|
|
setLabel(self,
label)
Set the label of this field. |
source code
|
|
|
|
getLabel(self)
Return the label of this field. |
source code
|
|
|
|
setDesc(self,
desc)
Set the description of this field. |
source code
|
|
|
|
getDesc(self)
Return the description of this field. |
source code
|
|
|
|
setValue(self,
val)
Set the value of this field. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
getValues(self)
Return the list of values associated with this field. |
source code
|
|
|
|
getOptions(self)
Return label-option pairs list associated with this field. |
source code
|
|
|
|
setOptions(self,
lst)
Set label-option pairs list associated with this field. |
source code
|
|
|
|
addOption(self,
opt)
Add one more label-option pair to this field. |
source code
|
|
|
|
|
|
|
|
|
|
getVar(self)
Get 'var' attribute value of this field. |
source code
|
|
|
|
setVar(self,
val)
Set 'var' attribute value of this field. |
source code
|
|
|
Inherited from simplexml.Node:
__delitem__,
__getattr__,
__getitem__,
__setitem__,
__str__,
addChild,
addData,
clearData,
delAttr,
delChild,
getAttr,
getAttrs,
getCDATA,
getChildren,
getData,
getName,
getNamespace,
getParent,
getPayload,
getTag,
getTagAttr,
getTagData,
getTags,
has_attr,
setAttr,
setData,
setName,
setNamespace,
setParent,
setPayload,
setTag,
setTagAttr,
setTagData
|