GUI::WidgetController Class Reference

Base class for widget events handler. More...

#include <WidgetController.h>

Inheritance diagram for GUI::WidgetController:

GUI::EditController GUI::FormController List of all members.

Public Member Functions

 WidgetController (const WindowHandle &h)
 Construct a new WidgetController.
const WindowHandlegetHandle () const
 Return the window handle of the WidgetController.
virtual void initialize ()
 Initialize the controller, put here event handler registration. The EventsDispatcher call this method before add the controller in the list of registered controllers.
virtual EVENT_RETURN_T eventNotify (EVENT_ARGUMENT_T entity_ptr)
 Receive notification from EventsDispatcher.
void registerEventHandler (const std::string &event_id, AbstractEventHandler *handler_ptr)
 Register an event handler for the gived event id.
void unregisterEventHandler (const std::string &event_id)
 Unregister an event handler.

Detailed Description

Base class for widget events handler.

The factory object create a widget create also relative controller

See also:
GUI::EventsDispatcher


Constructor & Destructor Documentation

GUI::WidgetController::WidgetController ( const WindowHandle h  ) 

Construct a new WidgetController.

Parameters:
h the WindowHandle of the widget


Member Function Documentation

EVENT_RETURN_T GUI::WidgetController::eventNotify ( EVENT_ARGUMENT_T  entity_ptr  )  [virtual]

Receive notification from EventsDispatcher.

Parameters:
entity_ptr Pointer to the event entity
Returns:
the event handler return value

const WindowHandle & GUI::WidgetController::getHandle (  )  const

Return the window handle of the WidgetController.

Returns:
the WindowHandle

void GUI::WidgetController::registerEventHandler ( const std::string &  event_id,
AbstractEventHandler handler_ptr 
)

Register an event handler for the gived event id.

Parameters:
event_id the event id
handler_ptr pointer to the member function for event handler

void GUI::WidgetController::unregisterEventHandler ( const std::string &  event_id  ) 

Unregister an event handler.

Parameters:
event_id the event id


The documentation for this class was generated from the following files:
Generated on Wed Nov 15 22:21:10 2006 for Win32 by  doxygen 1.4.7