package CGI::Test::Form::Widget::Input::Password;
use strict;
use warnings;
##################################################################
# $Id: Password.pm 411 2011-09-26 11:19:30Z nohuhu@nohuhu.org $
# $Name: cgi-test_0-104_t1 $
##################################################################
#
# Copyright (c) 2001, Raphael Manfredi
#
# You may redistribute only under the terms of the Artistic License,
# as specified in the README file that comes with the distribution.
#
use Carp;
#
# This class models a FORM password input field.
#
# It inherits from Text_Field, since the only distinction between a text field
# and a password field is whether characters are shown as typed or not.
#
use base qw(CGI::Test::Form::Widget::Input::Text_Field);
#
# Attribute access
#
sub gui_type
{
return "password field";
}
#
# Redefined predicates
#
sub is_field
{
return 0;
} # not a pure text field
sub is_password
{
return 1;
}
1;
=head1 NAME
CGI::Test::Form::Widget::Input::Password - A password field
=head1 SYNOPSIS
# Inherits from CGI::Test::Form::Widget::Input
# $form is a CGI::Test::Form
my $passwd = $form->input_by_name("password");
$passwd->replace("foobar");
=head1 DESCRIPTION
This class models a password field, which is a text field whose input
is masked by the browser, but which otherwise behaves like a regular
text field.
The interface is the same as the one described in
L<CGI::Test::Form::Widget::Input::Text_Field>.
=head1 AUTHORS
The original author is Raphael Manfredi.
Steven Hilton was long time maintainer of this module.
Current maintainer is Alexander Tokarev F<E<lt>tokarev@cpan.orgE<gt>>.
=head1 SEE ALSO
CGI::Test::Form::Widget::Input(3).
=cut