Debian Codegraph @

Embperl/Form/Control/transparent.pm

raw
1
2 ###################################################################################
3 #
4 # Embperl - Copyright (c) 1997-2008 Gerald Richter / ecos gmbh www.ecos.de
5 # Embperl - Copyright (c) 2008-2014 Gerald Richter
6 #
7 # You may distribute under the terms of either the GNU General Public
8 # License or the Artistic License, as specified in the Perl README file.
9 #
10 # THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
11 # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
12 # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13 #
14 # $Id$
15 #
16 ###################################################################################
17
18 package Embperl::Form::Control::transparent ;
19
20 use strict ;
21 use base 'Embperl::Form::Control' ;
22
23 use Embperl::Inline ;
24
25 1 ;
26
27 __EMBPERL__
28
29 [# ---------------------------------------------------------------------------
30 #
31 # show - output the control
32 #]
33
34 [$ sub show ($self, $req)
35
36 my $span = ($self->{width_percent}) ;
37 $]
38 <td class="cBase cTransparentBox" colspan="[+ $span +]">[+ $self -> {showtext}?($self->{text}):$self -> form -> convert_text ($self) +]&nbsp;</td>
39 [$endsub$]
40
41
42 __END__
43
44 =pod
45
46 =head1 NAME
47
48 Embperl::Form::Control::transparent - A transparent area inside an Embperl Form
49
50
51 =head1 SYNOPSIS
52
53 {
54 type => 'transparent',
55 text => 'blabla'
56 }
57
58 =head1 DESCRIPTION
59
60 Used to create a transparent area with optional text inside an Embperl Form.
61 See Embperl::Form on how to specify parameters.
62
63 =head2 PARAMETER
64
65 =head3 type
66
67 Needs to be 'transparent'
68
69 =head3 text (optional)
70
71 Could be used to give a text that should be displayed inside the transparent area
72
73
74 =head1 Author
75
76 G. Richter (richter at embperl dot org)
77
78 =head1 See Also
79
80 perl(1), Embperl, Embperl::Form
81
82