Share and Money Management  0.16
Public Member Functions | List of all members
gui.controls.BaseValidator Class Reference

Base class for all validators. More...

Inheritance diagram for gui.controls.BaseValidator:

Public Member Functions

def __init__
 Constructor.
def Clone
 Standard cloner.
def Validate
 Validate the contents of the given control.
def TransferToWindow
 Transfer data from validator to window.
def TransferFromWindow
 Transfer data from window to validator.

Detailed Description

Base class for all validators.

Constructor & Destructor Documentation

def gui.controls.BaseValidator.__init__ (   self)

Constructor.

Member Function Documentation

def gui.controls.BaseValidator.Clone (   self)

Standard cloner.

Note
Every validator must implement the Clone() method.

Reimplemented in gui.controls.NotEmptyChoiceValidator, gui.controls.NotEmptyValidator, and gui.controls.DecimalValidator.

def gui.controls.BaseValidator.TransferFromWindow (   self)

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.

def gui.controls.BaseValidator.TransferToWindow (   self)

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.

def gui.controls.BaseValidator.Validate (   self,
  unused 
)

Validate the contents of the given control.

Reimplemented in gui.controls.NotEmptyChoiceValidator, gui.controls.NotEmptyValidator, and gui.controls.DecimalValidator.


The documentation for this class was generated from the following file: