Class HandlerAcceptor
source code
- Known Subclasses:
-
A HandlerAcceptor is an abstract base class for objects that can
accept a Handler.
It is often convenient to define a high-level object, such as a GTK
widget, that can be assigned directly to a Group. However, the GTK widget does not itself contain
the state management and sharing functionality. Instead, it holds a
reference to an object, such as an UnorderedObject, that provides that
functionality. In order to allow such a high-level widget to be assigned
directly to a Group, it is necessary to split out the capability of
accepting a Handler from the internal mechanisms for connecting to that
Handler.
|
constructor
|
HANDLER_TYPE
Every HandlerAcceptor must specify the type of Handler that it
requires, so that a Group may construct an appropriate Handler for it.
|
|
The set_handler method accepts a Handler. It must cause that Handler
to have its register() method called with an appropriate DObject. This
can often be accomplished by simply calling another HandlerAcceptor's
set_handler method.
- Parameters:
|