| 1 | |||
| 2 | ###################################################################### | ||
| 3 | ## $Id: TabbedAppFrame.pm 5896 2006-04-11 17:47:00Z spadkins $ | ||
| 4 | ###################################################################### | ||
| 5 | |||
| 6 | package App::Widget::JSApp::TabbedAppFrame; | ||
| 7 | $VERSION = (q$Revision: 5896 $ =~ /(\d[\d\.]*)/)[0]; # VERSION numbers generated by svn | ||
| 8 | |||
| 9 | use App; | ||
| 10 | use App::Widget::TabbedAppFrame; | ||
| 11 | use App::Widget::JSApp; | ||
| 12 | @ISA = ( "App::Widget::TabbedAppFrame", "App::Widget::JSApp" ); | ||
| 13 | |||
| 14 | use strict; | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | App::Widget::JSApp::TabbedAppFrame - An application frame. | ||
| 19 | |||
| 20 | =head1 SYNOPSIS | ||
| 21 | |||
| 22 | $name = "office"; | ||
| 23 | |||
| 24 | # official way | ||
| 25 | use Widget; | ||
| 26 | $context = App->context(); | ||
| 27 | $w = $context->widget($name); | ||
| 28 | |||
| 29 | # internal way | ||
| 30 | use App::Widget::JSApp::TabbedAppFrame; | ||
| 31 | $w = App::Widget::JSApp::TabbedAppFrame->new($name); | ||
| 32 | |||
| 33 | =cut | ||
| 34 | |||
| 35 | ###################################################################### | ||
| 36 | # CONSTANTS | ||
| 37 | ###################################################################### | ||
| 38 | |||
| 39 | ###################################################################### | ||
| 40 | # ATTRIBUTES | ||
| 41 | ###################################################################### | ||
| 42 | |||
| 43 | # INPUTS FROM THE ENVIRONMENT | ||
| 44 | |||
| 45 | =head1 DESCRIPTION | ||
| 46 | |||
| 47 | This class implements an application frame. | ||
| 48 | This includes a menu, an application toolbar, a screen selector, | ||
| 49 | a screen title, a screen toolbar, and | ||
| 50 | a screen frame. The application is actually implemented by the set | ||
| 51 | of screens that the application frame is configured to allow navigation | ||
| 52 | to. | ||
| 53 | |||
| 54 | The application frame can implement itself in frames if it is | ||
| 55 | configured to do so. Otherwise, it implements itself as a table. | ||
| 56 | |||
| 57 | =cut | ||
| 58 | |||
| 59 | ###################################################################### | ||
| 60 | # OUTPUT METHODS | ||
| 61 | ###################################################################### | ||
| 62 | |||
| 63 | sub _init { | ||
| 64 | &App::sub_entry if ($App::trace); | ||
| 65 | my $self = shift; | ||
| 66 | $self->SUPER::_init(@_); | ||
| 67 | $self->init_jsapp(); | ||
| 68 | &App::sub_exit() if ($App::trace); | ||
| 69 | } | ||
| 70 | |||
| 71 | 1; | ||
| 72 |