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

Class cBasicPatDetailsPageValidator

source code

     object --+                
              |                
wx._core.Object --+            
                  |            
wx._core.EvtHandler --+        
                      |        
     wx._core.Validator --+    
                          |    
       wx._core.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
PyValidator
__init__(self, dtd)
Validator initialization.
source code
Validator
Clone(self)
Standard cloner.
source code
 
Validate(self, parent=None)
Validate the contents of the given text control.
source code
bool
TransferToWindow(self)
Transfer data from validator to window.
source code
bool
TransferFromWindow(self)
Transfer data from window to validator.
source code

Inherited from wx._core.PyValidator: __repr__

Inherited from wx._core.Validator: GetWindow, SetWindow

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, ProcessEvent, ProcessPendingEvents, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind

Inherited from wx._core.Object: Destroy, GetClassName

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Static Methods

Inherited from wx._core.Validator: IsSilent, SetBellOnError

Properties

Inherited from object: __class__

Method Details

__init__(self, dtd)
(Constructor)

source code 

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

Returns: PyValidator
Overrides: object.__init__

Clone(self)

source code 

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

Returns: Validator
Overrides: wx._core.Validator.Clone

Validate(self, parent=None)

source code 

Validate the contents of the given text control.

Overrides: wx._core.Validator.Validate

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.

Returns: bool
Overrides: wx._core.Validator.TransferToWindow

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.

Returns: bool
Overrides: wx._core.Validator.TransferFromWindow