r23441@martha (orig r923): groditi | 2008-10-23 22:00:04 -0400
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Object.pm
index 68b47f3..a44a66d 100644 (file)
@@ -2,23 +2,31 @@ package Reaction::UI::Widget::Object;
 
 use Reaction::UI::WidgetClass;
 
-class Object, which {
+use namespace::clean -except => [ qw(meta) ];
 
-  implements fragment field_list {
-    render field => over $_{viewport}->ordered_fields;
-  };
+implements fragment container_list {
+  render container => over $_{viewport}->containers;
+};
+
+implements fragment container {
+  render 'viewport';
+};
 
-  implements fragment field {
-    render 'viewport';
-  };
+#we won't be needing these anymore
+implements fragment field_list {
+  render field => over $_{viewport}->fields;
+};
 
+implements fragment field {
+  render 'viewport';
 };
 
+__PACKAGE__->meta->make_immutable;
+
 1;
 
 __END__;
 
-
 =head1 NAME
 
 Reaction::UI::Widget::Object
@@ -27,13 +35,23 @@ Reaction::UI::Widget::Object
 
 =head1 FRAGMENTS
 
-=head2 widget
+=head2 container_list
 
-Renders C<field_list>
+Sequentially renders the C<fields> of the viewport;
+
+=head2 container
+
+Renders the C<field> viewport passed by C<field_list>
+
+=head1 DEPRECATED FRAGMENTS
 
 =head2 field_list
 
-Sequentially renders the C<ordered_fields> of the viewport.
+Sequentially renders the C<fields> of the viewport;
+
+=head2 field
+
+Renders the C<field> viewport passed by C<field_list>
 
 =head1 AUTHORS