line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::FormWidgets::Textfield; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
847
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
5
|
1
|
|
|
1
|
|
5
|
use parent 'HTML::FormWidgets'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors( qw( width ) ); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub init { |
10
|
2
|
|
|
2
|
1
|
4
|
my ($self, $args) = @_; |
11
|
|
|
|
|
|
|
|
12
|
2
|
|
|
|
|
7
|
$self->width( 40 ); |
13
|
2
|
|
|
|
|
10
|
return; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub render_field { |
17
|
2
|
|
|
2
|
1
|
4
|
my ($self, $args) = @_; |
18
|
|
|
|
|
|
|
|
19
|
2
|
50
|
50
|
|
|
13
|
$args->{class} .= ($args->{class} ? q( ): q()).($self->class || q(ifield)); |
20
|
2
|
|
|
|
|
17
|
$args->{size } = $self->width; |
21
|
|
|
|
|
|
|
|
22
|
2
|
|
|
|
|
11
|
return $self->hacc->textfield( $args ); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|