GenericValidator performs data transfer (but not validation or filtering) for the following basic controls: Button, CheckBox, ListBox, StaticText, RadioButton, RadioBox, Choice, ComboBox, Gauge, Slider, ScrollBar, SpinButton, TextCtrl, CheckListBox.
It checks the type of the window and uses an appropriate type for that window. For example, Button and TextCtrl transfer data to and from a String variable; ListBox uses a ArrayInt; CheckBox uses a bool.
For more information, please see Validator overview.
Validator overview, Validator, TextValidator
GenericValidator.new(GenericValidator validator)
Copy constructor.
GenericValidator.new(Boolean valPtr)
Constructor taking a bool pointer. This will be used for CheckBox and RadioButton.
GenericValidator.new(String valPtr)
Constructor taking a String pointer. This will be used for Button, ComboBox, StaticText, TextCtrl.
GenericValidator.new(Integer valPtr)
Constructor taking an integer pointer. This will be used for Gauge, ScrollBar, RadioBox, SpinButton, Choice.
GenericValidator.new(ArrayInt valPtr)
Constructor taking a ArrayInt pointer. This will be used for ListBox, CheckListBox.
destructor()
Destructor.
Validator clone()
Clones the generic validator using the copy constructor.
Boolean transfer_from_window()
Transfers the value from the window to the appropriate data type.
Boolean transfer_to_window()
Transfers the value to the window.
[This page automatically generated from the Textile source at Thu Aug 28 20:29:09 +0100 2008]