Gtk2::Ex::FormFactory::Proxy
Proxy class for application objects
- Provided by: libgtk2-ex-formfactory-perl (Version: 0.67-0ubuntu1)
- Source: gtk2-ex-formfactory
- Report a bug
Proxy class for application objects
#-- Proxies are always created through
#-- Gtk2::Ex::FormFactory::Context, never
#-- directly by the application.
Gtk2::Ex::FormFactory::Proxy->new (
context => Gtk2::Ex::FormFactory::Context,
object => Object instance or CODEREF,
name => Name of this proxy,
set_prefix => Method prefix for write accessors,
get_prefix => Method prefix for read accessors,
attr_accessors_href => Hashref with accessor callbacks,
attr_activity_href => Hashref with activity callbacks,
aggregated_by => Fully qualified attribute of the parent,
changes_attr_filter => Regex for attributes which should not trigger
the object's 'changed' status
);
This class implements a generic proxy mechanism for accessing application objects and their attributes. It defines attributes of the associated object are accessed. You never instantiate objects of this class by yourself; they're created internally by Gtk2::Ex::FormFactory::Context when adding objects with the Context->add_object() method.
But you may use the proxy objects e.g. for updates which affect the application object and the GUI as well.
You can receive Proxy objects using the Gtk2::Ex::FormFactory::Context->get_proxy() method.
Gtk2::Ex::FormFactory::Proxy
Attributes are handled through the common get_ATTR(), set_ATTR() style accessors.
Refer to Gtk2::Ex::FormFactory::Context->add_object for details.
Refer to Gtk2::Ex::FormFactory::Context->add_object for details.
Refer to Gtk2::Ex::FormFactory::Context->add_object for details.
If $attr has the form "object.attr" the attribute of the correspondent object is retreived, instead of the object associated with this proxy.
If $attr has the form "object.attr" the correspondent object will be updated, instead of the object associated with this proxy.
Joern Reder <joern at zyn dot de>
Copyright 2004-2006 by Joern Reder.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA.