X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FReaction%2FUI%2FViewPort%2FCollection.pm;h=05b2d6a41fb59aa92287d60880898bdbf3206e75;hb=5873cdbf927d4aab5955801ef0e8621a32743d20;hp=fef825a39a0261a010db9746caed717b197eeb41;hpb=f46fa4fd6538f16ddbf8891ebe2e1405dac47825;p=catagits%2FReaction.git diff --git a/lib/Reaction/UI/ViewPort/Collection.pm b/lib/Reaction/UI/ViewPort/Collection.pm index fef825a..05b2d6a 100644 --- a/lib/Reaction/UI/ViewPort/Collection.pm +++ b/lib/Reaction/UI/ViewPort/Collection.pm @@ -90,31 +90,62 @@ Reaction::UI::ViewPort::Collection =head1 DESCRIPTION -Creates, from an InterfaceModel::Collection, a list of viewports representing each -member of the collection. +Creates, from an InterfaceModel::Collection, a list of viewports representing +each member of the collection. =head1 ATTRIBUTES =head2 collection +Required read-only L +This is the original collection. + =head2 current_collection +Read-only, lazy-building +L +This is the collection that will be used to create C and should be +altered to reflect any ordering, paging, etc. By default this is the +same thing as C. + =head2 member_args +A read-write HASH ref of additional parameters to pass to the C +constructor as items are instantiated. + =head2 member_class +The class to use when instantiating items to represent the member items. + +See: L, +L, +L, + =head1 INTERNAL METHODS -These methods, although stable, are subject to change without notice. These are meant -to be used only by developers. End users should refrain from using these methods to -avoid potential breakages. +These methods, although stable, are subject to change without notice. +Extend at your own risk, APIs may change in the future. =head2 BUILD -=head2 get_builder_for +Intercept a parameter with the key C amd store it in C =head2 model +Returns the C + +=head2 _build_members + +Build individual viewports for each member of the collection, + +=head2 _build_member_args + +Defaults to an empty HASH ref. + +=head2 _build_member_class + +Defaults to L + =head1 AUTHORS See L for authors.