Tk::FormUI::Field - A role common to all form fields
Version 0.2
The hash key used when returning data from this field
The label displayed for the field in the dialog
The type of field
The default or initial value of the field
The Tk widget associated with this field
The font to use for the field's label DEFAULT: 'times 12 bold'
The font to use for the field's widget DEFAULT: 'times 12 bold'
Indicates if the field is read only DEFAULT: 0
The width of the field DEFAULT: 40
Error string associated with the field DEFAULT: ''
Optional code reference of function to call to verify the field data is valid. The field object will be passed as the only parameter to the function. The function should return the empty string if there is no error, or provide an error string if the data is not valid.
Returns 1 if the field is the specified type
BOOLEAN indicating if the field is the specified type
1 if the field is the specified type otherwise 0
Build the label widget for the field
$parent - Parent widget
widget object
Build the widget associated with this field. NOTE: This method should be overridden in the class for the field!
$parent - Parent widget for this widget
Widget object
Validate the field data
NONE
Paul Durden <alabamapaul AT gmail.com>
Copyright (C) 2015 by Paul Durden.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Tk::FormUI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tk::FormUI
CPAN shell
perl -MCPAN -e shell install Tk::FormUI
For more information on module installation, please visit the detailed CPAN module installation guide.