The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

UI::Various::Curses::Listbox - concrete implementation of UI::Various::Listbox

SYNOPSIS

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

ABSTRACT

This module is the specific implementation of UI::Various::Listbox using Curses::UI.

DESCRIPTION

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

METHODS

_prepare - prepare UI element

    $ui_element->_prepare($row, $column);

example:

    my ($errors, $row) = (0, 0);
    while ($_ = $self->child)
    {   $errors += $_->_prepare($row++, 0);   }

parameters:

    $row                relative row
    $column             relative column

description:

Prepare the UI element for Curses::UI. The method should only be called from UI::Various::Curses container elements!

returns:

1 in case of errors, 0 otherwise

_add - add new element

Curses's specific implementation of UI::Various::Listbox::add

_remove - remove element

Curses's specific implementation of UI::Various::Listbox::remove

_replace - replace all elements

Curses's specific implementation of UI::Various::Listbox::replace

_selected - get current selection of listbox

Curses's specific implementation of UI::Various::Listbox::selected

SEE ALSO

UI::Various, UI::Various::Listbox

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>