NAME
UI::Various::RichTerm::Window - concrete implementation of UI::Various::Window
SYNOPSIS
# This module should never be used directly!
# It is used indirectly via the following:
use UI::Various::Window;
ABSTRACT
This module is the specific implementation of UI::Various::Window using the rich terminal UI.
DESCRIPTION
The documentation of this module is only intended for developers of the package itself.
METHODS
_show - print UI element
$ui_element->_show;
description:
Show the complete window by printing its title and all its elements. Active elements (basically everything not just simple Text
) are numbered to allow later interaction with them. The method should only be called from _process
!
_process - handle action of UI element
$return_code = $ui_element->_process;
description:
Handle the action of the UI element. For a RichTerm
's window this means a loop of printing the window's elements and allowing to select one of the active ones for processing until the window is exited, changed or destroyed.
returns:
+
/-
for next/previous window, 0
for simple exit and undef
after destruction
destroy - remove window from application
RichTerm
's concrete implementation of UI::Various::Window::destroy sets a flag for auto-destruction in _process
.
SEE ALSO
UI::Various, UI::Various::Window
LICENSE
Copyright (C) Thomas Dorner.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See LICENSE file for more details.
AUTHOR
Thomas Dorner <dorner@cpan.org>