NAME

UI::Various::RichTerm::Dialog - concrete implementation of UI::Various::Dialog

SYNOPSIS

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

ABSTRACT

This module is the specific implementation of UI::Various::Dialog 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 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!

_process - handle action of UI element

$return_code = $ui_element->_process;

description:

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.

returns:

0 for simple exit and undef after destruction

destroy - remove dialogue from application

RichTerm's concrete implementation of UI::Various::Dialog::destroy sets a flag for auto-destruction in _process.

SEE ALSO

UI::Various, UI::Various::Dialog

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>