actionbar.pm

filter: Statementstmt 77.7% 7 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 83.3% 10 / 12 CC 1 SCAR 0.9
CC
1
Cov
78%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« constraint.pm ↑ Summary br.pm »
1 package HTML::GUI::actionbar;
2  
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =head1 NAME
7  
8 HTML::GUI::actionbar - Create and control a whole actionbar for web application
9  
10 =head1 VERSION
11  
12 Version 0.01
13  
14 =cut
15  
16 our $VERSION = '0.01';
17  
18 0 ▶use HTML::GUI::container;
Subroutine BEGIN: called CC=1 SCAR=2.6
19 use UNIVERSAL qw(isa);
20 our @ISA = qw(HTML::GUI::container);
21  
22  
23  
24 =head1 ACTIONBAR
25  
26 A actionbar widget is intended to contain buttons.
27 It's a <p> tag that apply the css class "actionbar".
28  
29  
30 =cut
31  
32 =head1 PUBLIC ATTRIBUTES
33  
34 =pod
35  
36  
37  
38 =cut
39  
40  
41 =head1 PUBLIC METHODS
42  
43 =pod
44  
45 =head3 new
46  
47 create a new actionbar
48  
49 =cut
50  
51 sub new
52 {
53 my($class,$params) = @_;
54  
55 $params->{type} = "actionbar";
56 my $this = $class->SUPER::new($params);
57 return undef unless defined $this;
58  
59 bless($this, $class);
60 }
61  
62  
63 =pod
64  
65 =head3 getHtml
66  
67 Description :
68 Return the html of the widget.
69  
70 =cut
71  
72 sub getHtml
73 {
74 my($self) = @_;
75 my %tagProp=();
76 my %styleProp=();
77
78  
79 $tagProp{class} = 'actionBar';
80 return $self->getHtmlTag( 'p',
81 \%tagProp,
82 $self->SUPER::getHtml()) ;
83 }
84  
85  
86  
87 =head1 AUTHOR
88  
89 Jean-Christian Hassler, C<< <jhassler at free.fr> >>
90  
91 =head1 BUGS
92  
93 Please report any bugs or feature requests to
94 C<bug-gui-libhtml-actionbar at rt.cpan.org>, or through the web interface at
95 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-GUI-widget>.
96 I will be notified, and then you'll automatically be notified of progress on
97 your bug as I make changes.
98  
99 =head1 SUPPORT
100  
101 You can find documentation for this module with the perldoc command.
102  
103 perldoc HTML::GUI::widget
104  
105 You can also look for information at:
106  
107 =over 4
108  
109 =item * AnnoCPAN: Annotated CPAN documentation
110  
111 L<http://annocpan.org/dist/HTML-GUI-widget>
112  
113 =item * CPAN Ratings
114  
115 L<http://cpanratings.perl.org/d/HTML-GUI-widget>
116  
117 =item * RT: CPAN's request tracker
118  
119 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTML-GUI-widget>
120  
121 =item * Search CPAN
122  
123 L<http://search.cpan.org/dist/HTML-GUI-widget>
124  
125 =back
126  
127 =head1 ACKNOWLEDGEMENTS
128  
129 =head1 COPYRIGHT & LICENSE
130  
131 Copyright 2007 Jean-Christian Hassler, all rights reserved.
132  
133 This program is free software; you can redistribute it and/or modify it
134 under the same terms as Perl itself.
135  
136 =cut
137  
138 1; # End of HTML::GUI::actionbar
« constraint.pm ↑ Summary br.pm »