aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/ViewPort/Collection
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-01-05 00:21:12 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-01-05 00:21:12 +0000
commitcc44a3371f6bb93dfcc28961004b00064942e27b (patch)
treea937594b1e3ea8e055cae7337b6d13fd72a194b4 /lib/Reaction/UI/ViewPort/Collection
parent36d54b146cfba17f5c7757eced453429ee31c780 (diff)
downloadreaction-cc44a3371f6bb93dfcc28961004b00064942e27b.tar.gz
reaction-cc44a3371f6bb93dfcc28961004b00064942e27b.zip
fixed choosemany, fixed some widget stuff i broke before, renamed ordered_fields to computed_field_order to avoid ambiguity
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Collection')
-rw-r--r--lib/Reaction/UI/ViewPort/Collection/Grid.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Reaction/UI/ViewPort/Collection/Grid.pm b/lib/Reaction/UI/ViewPort/Collection/Grid.pm
index 9d48cd1..ab33770 100644
--- a/lib/Reaction/UI/ViewPort/Collection/Grid.pm
+++ b/lib/Reaction/UI/ViewPort/Collection/Grid.pm
@@ -7,11 +7,11 @@ use aliased 'Reaction::UI::ViewPort::Collection::Grid::Member';
class Grid is 'Reaction::UI::ViewPort::Collection', which {
- has field_order => ( isa => 'ArrayRef', is => 'ro', lazy_build => 1);
- has field_labels => ( isa => 'HashRef', is => 'ro', lazy_build => 1);
+ has field_order => ( is => 'ro', isa => 'ArrayRef', lazy_build => 1);
+ has excluded_fields => ( is => 'ro', isa => 'ArrayRef', lazy_build => 1);
+ has field_labels => ( is => 'ro', isa => 'HashRef', lazy_build => 1);
- has ordered_fields => (is => 'ro', isa => 'ArrayRef', lazy_build => 1);
- has excluded_fields => (is => 'ro', isa => 'ArrayRef', lazy_build => 1);
+ has computed_field_order => (is => 'ro', isa => 'ArrayRef', lazy_build => 1);
####################################
implements _build_member_class => as { };
@@ -28,7 +28,7 @@ class Grid is 'Reaction::UI::ViewPort::Collection', which {
implements _build_field_order => as { []; };
implements _build_excluded_fields => as { []; };
- implements _build_ordered_fields => as {
+ implements _build_computed_field_order => as {
my ($self) = @_;
confess("current_collection lacks a value for 'member_type' attribute")
unless $self->current_collection->has_member_type;
@@ -50,7 +50,7 @@ class Grid is 'Reaction::UI::ViewPort::Collection', which {
before _build_members => sub {
my ($self) = @_;
- $self->member_args->{ordered_fields} ||= $self->ordered_fields;
+ $self->member_args->{computed_field_order} ||= $self->computed_field_order;
};
};