HTML::Widget::Plugin - base class for HTML widgets
version 0.204
This class provides a simple way to write plugins for HTML::Widget::Factory.
my $plugin = Plugin->new( \%arg );
The default plugin constructor is really simple. It requires that the argument is either a hashref or not given.
$arg = $plugin->rewrite_arg($arg);
This method returns a reference to a hash of arguments, rewriting the given hash reference to place arguments that are intended to become element attributes into the attr parameter.
attr
It moves attributes listed in the results of the attribute_args method.
attribute_args
This method returns a list of argument names, the values of which should be used as HTML element attributes.
The default implementation climbs the plugin's inheritance tree, calling _attribute_args and pushing all the results onto a list from which unique results are then returned.
_attribute_args
boolean_args
This method returns a list of argument names, the values of which should be treated as booleans.
The default implementation climbs the plugin's inheritance tree, calling _boolean_args and pushing all the results onto a list from which unique results are then returned.
_boolean_args
provided_widgets
This method should be implemented by any plugin. It returns a list of method names which a factor should delegate to this plugin.
Ricardo SIGNES
This software is copyright (c) 2005 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install HTML::Widget::Factory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Widget::Factory
CPAN shell
perl -MCPAN -e shell install HTML::Widget::Factory
For more information on module installation, please visit the detailed CPAN module installation guide.