package WebGUI::FormBuilder::Fieldset; use strict; use Moose; use MooseX::Storage; has 'name' => ( is => 'ro', isa => 'Str', required => 1, ); has 'label' => ( is => 'rw', isa => 'Str', ); has 'session' => ( is => 'ro', isa => 'WebGUI::Session', required => 1, weak_ref => 1, traits => [ 'DoNotSerialize' ], ); with Storage( format => 'JSON' ); with 'WebGUI::FormBuilder::Role::HasFields'; with 'WebGUI::FormBuilder::Role::HasFieldsets'; with 'WebGUI::FormBuilder::Role::HasTabs'; =head1 METHODS =cut #---------------------------------------------------------------------------- =head2 new ( session, properties ) Create a new Fieldset object. C is a WebGUI Session. C is a list of name => value pairs. =over 4 =item name Required. The name of the fieldset. Cannot be changed after initially set, otherwise the parent
may not work correctly. =item label Optional. A label to show the user. =item legend Optional. A synonym for C