UI::Various::PoorTerm::Box - concrete implementation of UI::Various::Box
# This module should never be used directly! # It is used indirectly via the following: use UI::Various::Box;
This module is the specific minimal fallback implementation of UI::Various::Box. It manages and hides everything specific to the last resort UI.
The documentation of this module is only intended for developers of the package itself.
$ui_element->_show($prefix);
$_->_show('(1) ');
$prefix text in front of first line
Show the complete box by printing a separator (blank line unless the border should be visible) and its indented content. If the box is not indented, its active elements are numbered to allow later interaction with them. The method should only be called from _process or a I::Various::PoorTerm container element!
_process
$ui_element->_process;
Handle the action of the UI element. For a PoorTerm's box this means: If the box has no active element, just return. If it has exactly one active element, the active element is processed directly. Otherwise the method iterates through a loop of printing the box's elements and allowing to select one of the active ones for processing until the box is exited.
PoorTerm
UI::Various, UI::Various::Box
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.
Thomas Dorner <dorner (at) cpan (dot) org>
To install UI::Various, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UI::Various
CPAN shell
perl -MCPAN -e shell install UI::Various
For more information on module installation, please visit the detailed CPAN module installation guide.