# Copyright (c) 2001 bivio Software, Inc. All rights reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: WidgetFactory.pm,v 2.2 2009/05/20 20:06:22 moeller Exp $ package Bivio::UI::HTML::WidgetFactory; use strict; use Bivio::Base 'Bivio::Delegator'; # C creates widgets for model fields. # # wf_class : string [] # # Name of the widget class to use. Overrides dynamic lookups. # # wf_list_link : hash_ref [] # # Must contain a I attribute which is a # L and # the widget will be wrapped in a link whose I is # a call to # L # with I as the query type. # # If I is specified, it will be passed as a second argument to # I. # # If I is specified, it will be passed as a second argument to # I. # # The rest of the attributes are passed to the link directly, e.g. control. # I is set to be the widget (i.e. the name). # # wf_want_display : boolean [] # # If true, the field will be rendered as a display only widget. # # wf_want_select : boolean [] # # If true, will force a widget to a be a select, if it can. our($VERSION) = sprintf('%d.%02d', q$Revision: 2.2 $ =~ /\d+/g); 1;