Wx::Perl::TreeView - virtual tree control interface
Wx::Perl::TreeView provides a "virtual" tree control, similar to a virtual Wx::ListCtrl. All the data access methods are contained inside Wx::Perl::TreeView::Model. Wx::Perl::TreeView forwards all unknown method calls to the contained Wx::TreeCtrl.
Wx::Perl::TreeView
Wx::ListCtrl
Wx::Perl::TreeView::Model
Wx::TreeCtrl
my $treeview = Wx::Perl::TreeView->new( $tree_control, $model );
Constructs a new Wx::Perl::TreeView instance using the previously constructed tree control and model.
$treeview->reload;
Deletes all tree items and readds root node(s) from the model.
my $refreshed = $treeview->refresh; my $refreshed = $treeview->refresh( [ $treeitemid1, $treeitemid2, ... ] );
Walks the tree and refreshes data from the expanded tree branches. Returns true on success.
true
If one of the expanded nodes has a different child count in the model and in the tree, calls reload and returns false.
reload
false
If a list of Wx::TreeItemId is passed as argument, te child count of these nodes is not checked against the model, and after refreshing these nodes are expanded.
Wx::TreeItemId
my $cookie = $treeview->get_cookie( $treeitemid );
Returns the cookie associated with the given Wx::TreeItemId.
my $treectrl = $treeview->treectrl;
my $model = $treeview->model;
Mattia Barbon <mbarbon@cpan.org>
Copyright (c) 2007 Mattia Barbon <mbarbon@cpan.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself
To install Wx::Perl::TreeView, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wx::Perl::TreeView
CPAN shell
perl -MCPAN -e shell install Wx::Perl::TreeView
For more information on module installation, please visit the detailed CPAN module installation guide.