NAME

Tk::ObjScanner - Tk composite widget object scanner

SYNOPSIS

use Tk::ObjScanner;

my $scanner = $mw->ObjScanner( caller => $object, 
                               [title=>"windows"]) -> pack ;

DESCRIPTION

The scanner is a composite widget made of a listbox and a text window (actually a TK::ROText). 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.

WIDGET-SPECIFIC METHODS

updateListBox

Update the keys of the listbox. This method may be handy if the scanned object wants to update the listbox of the scanner when the scanned object gets new attributes.

AUTHOR

Dominique Dumont, Dominique_Dumont@grenoble.hp.com

Copyright (c) 1997-1999 Dominique Dumont. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

perl(1), Tk(3), Tk::ROText(3), Data::Dumper(3)