VCF::UIComponent Class Reference
#include <vcf/ApplicationKit/UIComponent.h>
Inheritance diagram for VCF::UIComponent:

Public Member Functions | |
| UIComponent () | |
| UIComponent (Component *owner) | |
| UIComponent (const String &name, Component *owner) | |
| UIComponent (const String &name) | |
| virtual | ~UIComponent () |
| This is protected - you should call free, or release to destroy the component. | |
| Action * | getAction () const |
| Returns the Action associated with this component. | |
| void | setAction (Action *action) |
| Set's the action for the component. | |
| virtual bool | updateAction () |
| Calling this triggers an update event to be fired. | |
| void | addToUpdateList () |
| Adds the component to the framework's update list. | |
| void | removeFromUpdateList () |
| Removes the component from the framework's update list. | |
| virtual void | handleEvent (Event *event) |
| generic handler method for events. | |
Protected Member Functions | |
| virtual void | destroy () |
| called by the free() method. | |
Protected Attributes | |
| Action * | action_ |
Constructor & Destructor Documentation
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
This is protected - you should call free, or release to destroy the component.
|
Member Function Documentation
|
|
Adds the component to the framework's update list. This list will be traversed periodically, during idle time, and the framework will create a COMPONENT_NEEDS_UPDATING event and pass it to the component. The component can specialize this functionality by customizing the behaviour of the handleEvent() method. |
|
|
called by the free() method. Should be overriden and any clean up code performed here Reimplemented from VCF::Component. Reimplemented in VCF::ComboBoxControl, VCF::Control, VCF::Frame, VCF::ListBoxControl, VCF::Menu, VCF::MenuBar, VCF::PopupMenu, and VCF::Window. |
|
|
Returns the Action associated with this component. Any component can have an action associated with it. This allows multiple component components (like a menu item, and a push button) to share the same action and to respond in a coordinated manner to changes in state. |
|
|
generic handler method for events. All UI events are sent here and then dispatched accordingly to a more specific event handler. If an Application class is present, then it is given a chance to "see" the event first before delegating it to the Component. All events are dispatched by their type so it is important to correctly identify the event objects type if you would like it to be dispatched correctly. The method will call the appropriate component method, like afterCreate(), beforeDestroy(), etc.
Reimplemented from VCF::Component. Reimplemented in VCF::Control, VCF::DefaultMenuItem, VCF::HeaderControl, VCF::ListBoxControl, VCF::ListControl, VCF::ListItem, VCF::ListViewControl, VCF::Menu, VCF::MenuBar, VCF::TabbedPages, VCF::TableControl, VCF::TextControl, VCF::ToolbarItem, VCF::Toolbar, VCF::TreeControl, VCF::TreeItem, VCF::TreeListControl, and VCF::Window. |
|
|
Removes the component from the framework's update list.
|
|
|
Set's the action for the component.
|
|
|
Calling this triggers an update event to be fired. The default behaviour is to see if the component has an action associated with it, and then calls the action's update() method.
Reimplemented in VCF::ToolbarItem. |
Member Data Documentation
|
|
|
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/UIComponent.h
