NAME
App::Widget - Family of web user interface widgets for the App::Context Framework, enabling development of complex UI's in a CGI, mod_perl, or other web context
SYNOPSIS
use App::Widget;
Public Methods:
handle_event()
* Signature: $handled = $self->handle_event($widget_name, $event, @args);
* Param: widget_name string
* Param: event string
* Param: @args ARRAY
* Return: $handled boolean
* Throws: App::Exception
* Since: 0.01
$handled = $widget->handle_event($widget_name, $event, @args);
content()
* Signature: $content = $self->content();
* Param: void
* Return: $content any
* Throws: App::Exception
* Since: 0.01
$content = $so->content();
if (ref($content)) {
App::Reference->print($content);
print "\n";
}
else {
print $content, "\n";
}
set_alternative_content()
* Signature: $service->set_alternative_content($content, $extension);
* Param: $content string
* Param: $extension string
* Return: void
* Throws: App::Exception
* Since: 0.01
Sample Usage:
$service->set_alternative_content("red,green,blue\n1,2,3\n", "csv");
content_type()
* Signature: $content_type = $service->content_type();
* Param: void
* Return: $content_type string
* Throws: App::Exception
* Since: 0.01
Sample Usage:
$content_type = $service->content_type();
Protected Methods:
user_event_name()
* Signature: $text = $widget->user_event_name($event,@args);
* Param: void
* Return: $text text
* Throws: App::Exception::Widget
* Since: 0.01
Sample Usage:
$name = $self->user_event_name("open","folder","1.1");
$html .= "<input type='submit' name='$name' value='Push Me'>\n";
callback_event_tag()
* Signature: $text = $widget->callback_event_tag($event,@args);
* Param: void
* Return: $text text
* Throws: App::Exception::Widget
* Since: 0.01
Sample Usage:
$html .= $self->callback_event_tag("open","folder","1.1");