App-Widget

 view release on metacpan or  search on metacpan

lib/App/Widget/Menu.pm  view on Meta::CPAN


######################################################################
## $Id: Menu.pm 3668 2006-03-11 20:51:13Z spadkins $
######################################################################

package App::Widget::Menu;
$VERSION = (q$Revision: 3668 $ =~ /(\d[\d\.]*)/)[0];  # VERSION numbers generated by svn

use App;
use App::Widget;
@ISA = ( "App::Widget" );

use strict;

=head1 NAME

App::Widget::Menu - An application menu.

=head1 SYNOPSIS

   $name = "office-menu";

   # official way
   use App;
   $context = App->context();
   $w = $context->widget($name);

   # internal way
   use App::Widget::Menu;
   $w = App::Widget::Menu->new($name);

=cut

######################################################################
# CONSTANTS
######################################################################

######################################################################
# ATTRIBUTES
######################################################################

# INPUTS FROM THE ENVIRONMENT

=head1 DESCRIPTION

This class implements a toolbar full of pushbuttons.

=cut

######################################################################
# INITIALIZATION
######################################################################

# no special initialization

######################################################################
# EVENTS
######################################################################

# no events

######################################################################
# OUTPUT METHODS
######################################################################

sub html {
    my $self = shift;
    my ($name, $value, $html);
    $name = $self->{name};
    $value = $self->get_value("");
    $html = "<!-- menu ($name) -->";
    $html;
}

1;



( run in 0.662 second using v1.01-cache-2.11-cpan-39bf76dae61 )