Share and Money Management 0.18devel
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__ (self)
 Constructor. More...
 
def Clone (self)
 Standard cloner. More...
 
def Validate (self, unused)
 Validate the contents of the given control. More...
 
def TransferToWindow (self)
 Transfer data from validator to window. More...
 
def TransferFromWindow (self)
 Transfer data from window to validator. More...
 

Detailed Description

Base class for all validators.

Constructor & Destructor Documentation

◆ __init__()

def gui.controls.BaseValidator.__init__ (   self)

Constructor.

Reimplemented in gui.controls.DecimalValidator.

References gui.controls.BaseValidator.__init__().

Referenced by gui.controls.BaseValidator.__init__().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ Clone()

def gui.controls.BaseValidator.Clone (   self)

Standard cloner.

Note
Every validator must implement the Clone() method.

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

◆ TransferFromWindow()

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.

◆ TransferToWindow()

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.

◆ Validate()

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

Validate the contents of the given control.

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


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