GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
widgets.GenericValidator Class Reference
Inheritance diagram for widgets.GenericValidator:
Collaboration diagram for widgets.GenericValidator:

Public Member Functions

def __init__
 
def Clone
 
def Validate
 
def TransferToWindow
 
def TransferFromWindow
 

Detailed Description

This validator checks condition and calls callback
in case the condition is not fulfilled.

Definition at line 340 of file widgets.py.

Constructor & Destructor Documentation

def widgets.GenericValidator.__init__ (   self,
  condition,
  callback 
)
Standard constructor.

@param condition function which accepts string value and returns T/F
@param callback function which is called when condition is not fulfilled

Definition at line 344 of file widgets.py.

References widgets.GenericValidator._callback, and widgets.GenericValidator._condition.

Member Function Documentation

def widgets.GenericValidator.Clone (   self)
Standard cloner.

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

Definition at line 354 of file widgets.py.

References widgets.GenericValidator._callback, and widgets.GenericValidator._condition.

def widgets.GenericValidator.TransferFromWindow (   self)
Transfer data from window to validator.

Definition at line 378 of file widgets.py.

def widgets.GenericValidator.TransferToWindow (   self)
Transfer data from validator to window.

Definition at line 372 of file widgets.py.

def widgets.GenericValidator.Validate (   self,
  win 
)

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