« blib/lib/Gapp/Model/List.pm
↑ Summary
blib/lib/Gapp/Moose/Meta/Attribute/Trait/GappActionGroup.pm »
| 1 | package Gapp::Model::SimpleList; | ||
| 2 | { | ||
| 3 | $Gapp::Model::SimpleList::VERSION = '0.60'; | ||
| 4 | } | ||
| 5 | |||
| 6 | use Moose; | ||
| 7 | use MooseX::SemiAffordanceAccessor; | ||
| 8 | use MooseX::Types::Moose qw( HashRef ); | ||
| 9 | |||
| 10 | use Gapp::Gtk2; | ||
| 11 | extends 'Gapp::Object'; | ||
| 12 | |||
| 13 | |||
| 14 | has '+gclass' => ( | ||
| 15 | default => 'Gapp::Gtk2::Model::SimpleList', | ||
| 16 | ); | ||
| 17 | |||
| 18 | has '+gobject' => ( | ||
| 19 | handles => [qw( clear append )], | ||
| 20 | ); | ||
| 21 | |||
| 22 | |||
| 23 | has 'content' => ( | ||
| 24 | is => 'rw', | ||
| 25 | isa => 'ArrayRef', | ||
| 26 | default => sub { [ ] }, | ||
| 27 | ); | ||
| 28 | |||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | |||
| 33 | 1; | ||
| 34 | |||
| 35 | __END__ |