NAME

Tk::QuickForm::CBaseClass - Base class for items in Tk::QuickForm.

SYNOPSIS

package MyFormItem;

use base qw(Tk::TabedForm::CBaseClass);
Construct Tk::Widget 'MyFormItem';

DESCRIPTION

Inherits Tk::Frame

Provides a base class for you to inherit. Helps making items for Tk::QuickForm.

You should never create an instance directly like above. This should be handled by Tk::QuickForm.

CONFIG VARIABLES

Switch: -regex

By default '.*'. Set a regular expression used for validation.

Switch: -validatecall

Callback, called after validation with the result as parameter.

METHODS

get

Returns the value.

put($value)

Sets the value.

validate(?$value?)

Validates the value against the regex in the -regex option.

validUpdate($flag, $value)

For you to overwrite. Does nothing. Is called to update the widget to reflect the outcome of validate.

variable

Returns a reference to the internal variable.

LICENSE

Same as Perl.

AUTHOR

Hans Jeuken (hanje at cpan dot org)

BUGS

Unknown. If you find any, please contact the author.

SEE ALSO

Tk::QuickForm