UI::Various::RichTerm::Dialog - concrete implementation of UI::Various::Dialog
# This module should never be used directly! # It is used indirectly via the following: use UI::Various::Dialog;
This module is the specific implementation of UI::Various::Dialog using the rich terminal UI.
The documentation of this module is only intended for developers of the package itself.
$ui_element->_show;
Show the complete dialogue by printing its title and 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!
Text
_process
$return_code = $ui_element->_process;
Handle the action of the UI element. For a RichTerm's dialogue this means a loop of printing the dialogue's elements and allowing to select one of the active ones for processing until the dialogue is exited, changed or destroyed.
RichTerm
0 for simple exit and undef after destruction
0
undef
RichTerm's concrete implementation of UI::Various::Dialog::destroy sets a flag for auto-destruction in _process.
UI::Various, UI::Various::Dialog
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.