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