NAME

Tk::ObjScanner - Tk composite widget object scanner

SYNOPSIS

use Tk::Multi::Text;

my $mgr = Tk::ObjScanner new ( caller => $object, [title=>"windows"]);

DESCRIPTION

The scanner is a composite widget made of a listbox and a test window (actually a Multi::Text). This widget acts as a scanner to the object passed with the 'caller' parameter. The scanner will retrieve all keys of the hash/object and insert them in the listbox.

When the user double clicks on the key, the value will be displayed in the text window. If the key value is itself a ref, the content of the ref is recursively displayed in the text window (thanks to Data::Dumper).

Constructor parameters

The mandatory 'caller' parameter will contains the ref of the object to scan.

The optionnal 'title' argument contains the title of the menu created by the scanner.

Methods

updateListBox

Update the keys of the listbox. This method may be handy if the scanned object wants to update the listbox if it has defined some new keys.

AUTHOR

Dominique Dumont, Dominique_Dumont@grenoble.hp.com

SEE ALSO

perl(1), Tk(3), Tk::Multi::Text(3), Data::Dumper(3)