Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::ComponentEvent Class Reference

ComponentEvent are events generated by changes made to the component. More...

#include <vcf/ApplicationKit/ComponentEvent.h>

Inheritance diagram for VCF::ComponentEvent:

VCF::Event VCF::Object List of all members.

Public Member Functions

 ComponentEvent (Object *source)
 ComponentEvent (Object *source, const uint32 &eventType)
virtual ~ComponentEvent ()
virtual Objectclone (bool deep=false)
 Makes a complete clone of this object.
void setChildComponent (Component *val)
ComponentgetChildComponent ()

Protected Attributes

ComponentchildComponent_

Detailed Description

ComponentEvent are events generated by changes made to the component.

Currently there are 2 types, one for the component being created, and one for component deletion.

Version:
1.0
Author:
Jim Crafton


Constructor & Destructor Documentation

VCF::ComponentEvent::ComponentEvent Object source  )  [inline]
 

VCF::ComponentEvent::ComponentEvent Object source,
const uint32 eventType
[inline]
 

virtual VCF::ComponentEvent::~ComponentEvent  )  [inline, virtual]
 


Member Function Documentation

virtual Object* VCF::ComponentEvent::clone bool  deep = false  )  [inline, virtual]
 

Makes a complete clone of this object.

A typical implementation might be:

    virtual Object* clone( bool deep ) {
        return new MyObject( this );
    }
In which the implementer simply creates a new instance on the heap and calls the copy constructor. Objects which support cloning should also have a copy constructor defined as well.

Parameters:
bool deep if deep is true then any object instances that this object owns should probably be cloned as well, with full new copies made. Otherwise it would be acceptable to simply copy the pointer values. The default value is for deep cloning to be false.
Returns:
Object a new instance that should be an copy of this. If the object doesn't support cloning the return will value will be NULL.

Reimplemented from VCF::Event.

Component* VCF::ComponentEvent::getChildComponent  )  [inline]
 

void VCF::ComponentEvent::setChildComponent Component val  )  [inline]
 


Member Data Documentation

Component* VCF::ComponentEvent::childComponent_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information