wxRuby Documentation Home

Wx::GenericValidator

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.

Derived from

Validator

EvtHandler

Object

See also

Validator overview, Validator,
TextValidator

Methods

GenericValidator.new

GenericValidator.new(%(arg-type)GenericValidator% validator)

Copy constructor.

GenericValidator.new(%(arg-type)Boolean% valPtr)

Constructor taking a bool pointer. This will be used for CheckBox and RadioButton.

GenericValidator.new(%(arg-type)String% valPtr)

Constructor taking a String pointer. This will be used for Button, ComboBox, StaticText,
TextCtrl.

GenericValidator.new(%(arg-type)Integer% valPtr)

Constructor taking an integer pointer. This will be used for Gauge, ScrollBar, RadioBox, SpinButton,
Choice.

GenericValidator.new(%(arg-type)ArrayInt% valPtr)

Constructor taking a ArrayInt pointer. This will be used for ListBox, CheckListBox.

Parameters

destructor()

Destructor.

GenericValidator#clone

Validator clone()

Clones the generic validator using the copy constructor.

GenericValidator#transfer_from_window

Boolean transfer_from_window()

Transfers the value from the window to the appropriate data type.

GenericValidator#transfer_to_window

Boolean transfer_to_window()

Transfers the value to the window.

[This page automatically generated from the Textile source at 2023-06-09 00:45:37 +0000]