Philip Gwyn > POE-XUL > POE::XUL::Window

Download:
POE-XUL-0.0600.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.0600   Source  

NAME ^

POE::XUL::Window - XUL window element

SYNOPSIS ^

    use POE::XUL::Node;

    # DWIM way
    $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
    $window->width( 800 );
    $window->height( 600 );


    # Main window is exported
    use POE::XUL::Application;

    my $node = window->getElementById( $id );

    window->open( $winID, $features );

    $window->close();

DESCRIPTION ^

POE::XUL::Window is a special sub-class of POE::XUL::Node to handle window elements.

METHODS ^

getElementById

node

Shorter name for "getElementById".

    my $button = window->node( 'B1' );

open

close

destroy

SEE ALSO ^

POE::XUL, POE::XUL::Node, POE::XUL::POE, POE::XUL::Event presents the list of all possible events.

http://developer.mozilla.org/en/docs/XUL has a good XUL reference.

AUTHOR ^

Philip Gwyn <gwyn-at-cpan.org>

CREDITS ^

Based on work by Ran Eilam.

COPYRIGHT AND LICENSE ^

Copyright 2007-2010 by Philip Gwyn. All rights reserved;

Copyright 2003-2004 Ran Eilam. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: