X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FReaction%2FUI%2FWidget%2FObject.pm;h=de83e2543a4d325ee9cb5be290f570fc7d77b3f0;hb=7b5e71adcc00ae151a7908c2cddcd7323408efc7;hp=1ec86a3c091b3c89cb17cc25da0e543e8f7b7f21;hpb=491704004b261c2761352b11d72be637e12f672f;p=catagits%2FReaction.git diff --git a/lib/Reaction/UI/Widget/Object.pm b/lib/Reaction/UI/Widget/Object.pm index 1ec86a3..de83e25 100644 --- a/lib/Reaction/UI/Widget/Object.pm +++ b/lib/Reaction/UI/Widget/Object.pm @@ -2,38 +2,94 @@ 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}->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 +Reaction::UI::Widget::Object - Widget to implement rendering of an object =head1 DESCRIPTION =head1 FRAGMENTS +=head2 container_list + +Sequentially renders the C of the viewport found in its C +method return values. + +=head2 container + +Renders the C viewport passed by C. + +=head1 DEPRECATED FRAGMENTS + =head2 field_list -Sequentially renders the C of the viewport in the C +Sequentially renders the C of the viewport; =head2 field Renders the C viewport passed by C +=head1 LAYOUT SETS + +=head2 base + + share/skin/base/layout/object.tt + +The following layouts are provided: + +=over 4 + +=item widget + +Renders the C fragment. + +=item container + +Renders the container viewport. + +=back + +=head2 default + + share/skin/default/layout/object.tt + +This layout set inherits from the one with the same name in the C skin. + +The following layouts are provided: + +=over 4 + +=item container + +Renders the container viewport. + +=back + =head1 AUTHORS See L for authors.