XUL-Node

XUL-Node is a server-side XUL for Perl.
Download

XUL-Node Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ran Eilam
  • Publisher web site:
  • http://search.cpan.org/~eilara/XUL-Node-0.06/lib/XUL/Node.pm

XUL-Node Tags


XUL-Node Description

XUL-Node is a server-side XUL for Perl. XUL-Node is a server-side XUL for Perl.SYNOPSIS use XUL::Node; # creating $window = Window( # window with a header, HTML_H1(textNode => 'a heading'), # a label, and a button $label = Label(FILL, value => 'a label'), Button(label => 'a button'), ); # attributes $label->value('a value'); $label->style('color:red'); print $label->flex; # compositing print $window->child_count; # prints 3: H1, label, button $window->add_child(Label(value =>'foo')); # add label to thw window $window->add_child(Label(value => 'bar'), 0); # add at an index, 0 is top $button = $window->get_child(3); # navigate down the widget tree print $button->get_parent->child_count; # naviate up, prints 6 $window->remove_child(0); # remove child at index $foo_label = $window->get_child(3); $window->remove_child($foo_label); # remove child # events $button = $window->add_child (Button(Click => sub { $label->value('clicked!') })); my $sub = sub { $label->value('clicked!') } add_listener $button, Click => $sub; # add several event listeners remove_listener $button, Click => $sub; $window->add_child(MenuList( MenuPopup(map { MenuItem(label => "item #$_", ) } 1..10), Select => sub { $label->value(shift->selectedIndex) }, )); # destroying $window->remove_child($button); # remove child widget $window->remove_child(1); # remove child by indexXUL-Node is a rich user interface framework for server-based Perl applications. It includes a server, a UI framework, and a Javascript XUL client for the Firefox web browser. Perl applications run inside a POE server, and are displayed in a remote web browser.The goal is to provide Perl developers with the well known XUL/Javascript development model, but with two small differences:Make it Perl friendlyNot one line of Javascript required. Be as Perlish as possible.Make it RemoteAllow users to run the application on remote servers. Client requirements: Firefox. Server requirements: Perl.XUL-Node works by splitting each widget into two: a server half, and a client half. The server half sends DOM manipulation commands, and the client half sends DOM events. A small Javascript client library takes care of the communications.The result is an application with a rich user interface, running in Firefox with no special security permissions, built in 100% pure Perl. Requirements: · Perl


XUL-Node Related Software