
Myco::Entity::Meta::UI


Container for metadata describing appropriate user interface behavior for an entity class.

Constructor, accessors, and other methods -- as inherited from Class::Tangram

Attributes may be initially set during object construction (with new()) but otherwise are accessed solely through accessor methods.
Typical usage:
$obj->set_attribute($value);
Check functions (see Class::Tangram) perform data validation. If there is any concern that the set method might be called with invalid data then the call should be wrapped in an eval block to catch exceptions that would result.
$value = $obj->get_attribute;
A listing of available attributes follows:
type: hash ref
type: string or coderef
type: array ref
my $sort = [ 'last_name',
{first_name => 1},
];
List of attributes to use in sorting list of objects of same (or polymorphic) type. Default order is ascending; optional boolean flag indicates 'descending' order.
type: hash ref
Reference to ..::Meta::UI::List object. set_list() automatically constructs such an object (a new one).
type: hash ref
Reference to ..::Meta::UI::View object. set_view() automatically constructs such an object (a new one).
my @sorted_objs = $ui_metadata->sort_objs(@unsorted_objs);
Returns a code ref for use in perl-style sorting, utilizing class metadata.

Copyright (c) 2006 the myco project. All rights reserved. This software is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Myco::Entity::Meta::UI::Test, Myco::Entity, Myco, Tangram, Class::Tangram, myco-mkentity