Raphael Manfredi > CGI-MxScreen-0.1.1 > CGI::MxScreen::Layout

Download:
CGI-MxScreen-0.1.1.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: CGI-MxScreen-0.103

NAME ^

CGI::MxScreen::Layout - ancestor for layout objects

SYNOPSIS ^

 use base qw(CGI::MxScreen::Layout);

 sub init {                  # redefine initialization
     my $self = shift;
     my ($screen) = @_;
     ...
 }

 sub preamble {              # redefine pre-amble
     my $self = shift;
     ...
 }

 sub postamble {             # redefine post-amble
     my $self = shift;
     ...
 }

DESCRIPTION ^

This class is meant to be the ancestor of all the layout objects that can be given to the CGI::MxScreen manager via the -layout argument.

In order to define your own layout, you must create a class inheriting from CGI::MxScreen::Layout and redefine the init(), preamble() and postamble() features, which do nothing by default.

Because this kind in inheritance is a specialization of some behaviour, you need to understand the various operations that get carried on, so that you may plug your layout properly.

It works as follows:

AUTHOR ^

Raphael Manfredi <Raphael_Manfredi@pobox.com>

SEE ALSO ^

CGI::MxScreen(3), CGI::MxScreen::Screen(3).

syntax highlighting: