From 6bc27bd310ba396fb925212fe78298ab859275cd Mon Sep 17 00:00:00 2001 From: matthewt Date: Fri, 9 Nov 2007 14:04:24 +0000 Subject: fixup widgets to use fragment --- lib/Reaction/UI/Widget/ListView.pm | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'lib/Reaction/UI/Widget/ListView.pm') diff --git a/lib/Reaction/UI/Widget/ListView.pm b/lib/Reaction/UI/Widget/ListView.pm index 26b1204..41041e7 100644 --- a/lib/Reaction/UI/Widget/ListView.pm +++ b/lib/Reaction/UI/Widget/ListView.pm @@ -3,7 +3,7 @@ package Reaction::UI::Widget::ListView; use Reaction::UI::WidgetClass; class ListView is 'Reaction::UI::Widget::GridView', which { - widget renders [ qw/pager header body footer actions/, + fragment widget [ qw/pager header body footer actions/, { pager => sub{ $_{viewport}->pager }, object_action_count => sub{ $_{viewport}->object_action_count }, @@ -11,7 +11,7 @@ class ListView is 'Reaction::UI::Widget::GridView', which { } ]; - pager renders + fragment pager [ qw/first_page previous_page current_page next_page last_page page_list/, { first_page => sub{ $_{pager}->first_page }, @@ -23,36 +23,36 @@ class ListView is 'Reaction::UI::Widget::GridView', which { } ]; - first_page renders [ string{ "First" } ], + fragment first_page [ string{ "First" } ], { uri => sub{ $_{self}->connect_uri( {page => $_{first_page} } ) } }; - previous_page renders [ string{ "Previous" } ], + fragment previous_page [ string{ "Previous" } ], { uri => sub{ $_{self}->connect_uri( {page => $_{previous_page} } ) } }; - current_page renders [ string{ "Current" } ], + fragment current_page [ string{ "Current" } ], { uri => sub{ $_{self}->connect_uri( {page => $_{current_page} } ) } }; - next_page renders [ string{ "Next" } ], + fragment next_page [ string{ "Next" } ], { uri => sub{ $_{self}->connect_uri( {page => $_{next_page} } ) } }; - last_page renders [ string{ "Last" } ], + fragment last_page [ string{ "Last" } ], { uri => sub{ $_{self}->connect_uri( {page => $_{last_page} } ) } }; - page_list renders [ page over $_{page_list} ]; - page renders [ string{ $_ } ], + fragment page_list [ page over $_{page_list} ]; + fragment page [ string{ $_ } ], { uri => sub{ $_{self}->connect_uri( {page => $_ } ) } }; - actions renders [ action over func(viewport => 'actions') ]; - action renders [ 'viewport' ]; + fragment actions [ action over func(viewport => 'actions') ]; + fragment action [ 'viewport' ]; - header_cell renders [ string { $_{labels}->{$_} } ], + fragment header_cell [ string { $_{labels}->{$_} } ], { uri => sub{ my $ev = {order_by => $_, order_by_desc => $_{viewport}->order_by_desc ? 0 : 1 }; return $_{self}->connect_uri($ev); } }; - footer_cell renders [ string { $_{labels}->{$_} } ], + fragment footer_cell [ string { $_{labels}->{$_} } ], { uri => sub{ my $ev = {order_by => $_, order_by_desc => $_{viewport}->order_by_desc ? 0 : 1 }; return $_{self}->connect_uri($ev); -- cgit v1.2.3-54-g00ecf