Package Gnumed :: Package wxpython :: Module gmDemographicsWidgets :: Class cBasicPatDetailsPageValidator
[frames] | no frames]

Class cBasicPatDetailsPageValidator

source code

wx.PyValidator --+
                 |
                cBasicPatDetailsPageValidator

This validator is used to ensure that the user has entered all the required conditional values in the page (eg., to properly create an address, all the related fields must be filled).

Instance Methods
 
__init__(self, dtd)
Validator initialization.
source code
 
Clone(self)
Standard cloner.
source code
 
Validate(self, parent=None)
Validate the contents of the given text control.
source code
 
TransferToWindow(self)
Transfer data from validator to window.
source code
 
TransferFromWindow(self)
Transfer data from window to validator.
source code
Method Details

__init__(self, dtd)
(Constructor)

source code 

Validator initialization. @param dtd The object containing the data model. @type dtd A cFormDTD instance

Clone(self)

source code 

Standard cloner. Note that every validator must implement the Clone() method.

TransferToWindow(self)

source code 

Transfer data from validator to window. The default implementation returns False, indicating that an error occurred. We simply return True, as we don't do any data transfer.

TransferFromWindow(self)

source code 

Transfer data from window to validator. The default implementation returns False, indicating that an error occurred. We simply return True, as we don't do any data transfer.