NAME

UI::Various::PoorTerm::Box - concrete implementation of UI::Various::Box

SYNOPSIS

# This module should never be used directly!
# It is used indirectly via the following:
use UI::Various::Box;

ABSTRACT

This module is the specific minimal fallback implementation of UI::Various::Box. It manages and hides everything specific to the last resort UI.

DESCRIPTION

The documentation of this module is only intended for developers of the package itself.

METHODS

_show - print UI element

$ui_element->_show($prefix);

example:

$_->_show('(1) ');

parameters:

$prefix             text in front of first line

description:

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 - handle action of UI element

$ui_element->_process;

description:

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.

SEE ALSO

UI::Various, UI::Various::Box

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 (at) cpan (dot) org>