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

NAME

Gapp::Gtk2::Model::List - A list with no set number of columns and can hold arbitrary data

SYNOPSIS

  use Gtk2 '-init';

  use Gapp::Gtk2;

  $list = Gapp::Gtk2::List->new;

  $iter = $list->append( 0 => $value1, 1 => $value2 );
  
  $iter = $list->append_record( $value3, $value4 );

  $list->set( $iter, 0, $new_value );
  
  $o = Foo::Bar->new;
  
  $list->append( 0 => $o );
  
   

DESCRIPTION

<Gapp::Gtk2::Model::List> is a Gtk2::TreeModel implmented in perl. It has an undefined number of columns which can hold any arbitrary data type.

OBJECT HEIRARCHY

Glib::Object
+-- Gapp::Gtk2::Model::List

Implemented Interfaces

Gtk2::TreeModel

PROVIDED METHODS

append ( $col = $value, [$col => $value, ...] )>

Adds an entry to the list and sets the values of the given columns.

append_record( $value, [$value, $value, ...] );

Adds an entry to the list and sets the values of given columns (using the position of the supplied values).

clear

Clears the list.

remove ( $iter )

Removes a row from the model.

set( $iter, $col = $value, [$col => $value, ...] )>

Sets the value at the position referenced by the $iter.

AUTHOR

Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>

COPYRIGHT

    Copyright (c) 2011-2012 Jeffrey Ray Hallock.
    This program is free software; you can redistribute it and/or
    modify it under the same terms as Perl itself.

3 POD Errors

The following errors were encountered while parsing the POD:

Around line 279:

Unknown directive: =over4

Around line 281:

'=item' outside of any '=over'

Around line 303:

Unterminated B<...> sequence