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


CGI-MxScreen documentation  | view source Contained in the CGI-MxScreen distribution.

Index


NAME

Top

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

SYNOPSIS

Top

 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

Top

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

Top

Raphael Manfredi <Raphael_Manfredi@pobox.com>

SEE ALSO

Top

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


CGI-MxScreen documentation  | view source Contained in the CGI-MxScreen distribution.