NAME

POE::XUL::Session - POE::XUL session object

SYNOPSIS

Normaly a POE::XUL::Session isn't created directly, but is created during POE::XUL::Application's spawn.

DESCRIPTION

POE::XUL::Session provides half of the margic for POE::XUL::Application. It implements perl-like event invocation. It makes sure the change manager and other bits of global data are always available to event handlers. It deals with most of the house keeping that POE::XUL applications have to do.

Access an application's session is done through the "server" in POE::XUL::Application.

METHODS

SID

Returns the unique identifier of the current application.

$node->label( server->SID );

ID

Returns the POE::Session identifier. See "ID" in POE::Session

session

Returns the POE::Session object.

current_state

Returns the name of the current POE event handler. Equivalent to $_[STATE] is regular POE code.

sender_session

Equivalent to $_[SENDER] in regular POE code.

sender_file

Equivalent to $_[CALLER_FILE] in regular POE code.

sender_line

Equivalent to $_[CALLER_LINE] in regular POE code.

sender_state

Equivalent to $_[CALLER_STATE] in regular POE code.

AUTHOR

Philip Gwyn <gwyn-at-cpan.org>

CREDITS

COPYRIGHT AND LICENSE

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

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

SEE ALSO

perl(1), POE::XUL, POE::XUL::Event, POE::XUL::Node, POE::XUL::Application.

http://www.prototypejs.org/.