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

VCF::Event Class Reference

The Event class is root object for events in the Framework. More...

#include <vcf/FoundationKit/Event.h>

Inheritance diagram for VCF::Event:

VCF::Object VCF::ActionEvent VCF::ButtonEvent VCF::ClipboardEvent VCF::ColumnItemEvent VCF::ColumnModelEvent VCF::ComponentEvent VCF::ControlEvent VCF::ControlPopupMenuMenuEvent VCF::DialogEvent VCF::DocManagerEvent VCF::DragScrollEvent VCF::DragSourceEvent VCF::DropTargetEvent VCF::FocusEvent VCF::FrameEvent VCF::HelpEvent VCF::HTMLAuthenticationEvent VCF::HTMLElementEvent VCF::HTMLEvent VCF::ImageEvent VCF::ImageListEvent VCF::ItemEditorEvent VCF::ItemEvent VCF::JavaScriptEvent VCF::KeyboardEvent VCF::ListModelEvent VCF::MenuItemEvent VCF::ModelEvent VCF::MouseEvent VCF::NotifyEvent VCF::OutputReadyEvent VCF::PrintEvent VCF::PropertyChangeEvent VCF::ScrollEvent VCF::TableCellClickEvent VCF::TableModelEvent VCF::TabModelEvent VCF::ThreadEvent VCF::TimerEvent VCF::ToolTipEvent VCF::TreeModelEvent VCF::UndoRedoEvent VCF::URLAuthenticationEvent VCF::URLEvent VCF::ValidationEvent VCF::WhatsThisHelpEvent VCF::WindowEvent VCF::XMLParserEvent VCFNet::ServerSocketEvent VCFNet::SocketEvent List of all members.

Public Member Functions

 Event (Object *source)
 Event (Object *source, const uint32 &eventType)
 Event (const Event &rhs)
Eventoperator= (const Event &rhs)
void init ()
 This is going to be removed from the bext release.
virtual void consume ()
bool getConsumed ()
void setConsumed (const bool &isConsumed)
bool isConsumed ()
ObjectgetSource ()
 retrieves the events source, in other words, who actually caused the event to be generated
uint32 getType ()
 gets the type of event.
void setType (const uint32 &type)
time_t getTime ()
 gets the time the event was created.
void setUserData (void *userData)
void * getUserData ()
virtual Objectclone (bool deep=false)
 Makes a complete clone of this object.

Public Attributes

bool consumed_
 shows whether or not the event has been consumed.

Detailed Description

The Event class is root object for events in the Framework.

Events are defined as any action that is generated in response to some change in the system. Moving the mouse, typing on the keyboard, etc are all example of Window System events that are generated by the User, but events can also be generated by an objects change in state. For example, a text model can fire events if the state of it's text has changed.

Version:
1.0
Author:
Jim Crafton


Constructor & Destructor Documentation

VCF::Event::Event Object source  ) 
 

VCF::Event::Event Object source,
const uint32 eventType
 

VCF::Event::Event const Event rhs  )  [inline]
 


Member Function Documentation

virtual Object* VCF::Event::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::Object.

Reimplemented in VCF::ActionEvent, VCF::ButtonEvent, VCF::ClipboardEvent, VCF::ColumnItemEvent, VCF::ColumnModelEvent, VCF::ComponentEvent, VCF::ControlEvent, VCF::DialogEvent, VCF::DragSourceEvent, VCF::DropTargetEvent, VCF::FocusEvent, VCF::FrameEvent, VCF::HelpEvent, VCF::ImageListEvent, VCF::ItemEditorEvent, VCF::ItemEvent, VCF::KeyboardEvent, VCF::ListModelEvent, VCF::MenuItemEvent, VCF::ModelEvent, VCF::MouseEvent, VCF::ScrollEvent, VCF::TableModelEvent, VCF::TabModelEvent, VCF::TextEvent, VCF::TimerEvent, VCF::ToolTipEvent, VCF::TreeModelEvent, VCF::UndoRedoEvent, VCF::ValidationEvent, VCF::WhatsThisHelpEvent, VCF::WindowEvent, VCF::NotifyEvent, VCF::OutputReadyEvent, VCF::PropertyChangeEvent, VCF::ThreadEvent, VCF::ImageEvent, VCF::PrintEvent, VCF::HTMLAuthenticationEvent, VCF::HTMLEvent, VCF::HTMLElementEvent, VCF::URLAuthenticationEvent, and VCF::URLEvent.

virtual void VCF::Event::consume  )  [inline, virtual]
 

bool VCF::Event::getConsumed  )  [inline]
 

Object* VCF::Event::getSource  ) 
 

retrieves the events source, in other words, who actually caused the event to be generated

time_t VCF::Event::getTime  ) 
 

gets the time the event was created.

uint32 VCF::Event::getType  ) 
 

gets the type of event.

Some events may not put anything useful here, but events associated with Listeners that have multiple methods (like MouseListener) will definitely store a flag here. See the specific event class for the exact event types the event types can be set to

void* VCF::Event::getUserData  ) 
 

void VCF::Event::init  ) 
 

This is going to be removed from the bext release.

Deprecated:

Reimplemented from VCF::Object.

Reimplemented in VCF::ImageEvent.

bool VCF::Event::isConsumed  )  [inline]
 

Event& VCF::Event::operator= const Event rhs  )  [inline]
 

void VCF::Event::setConsumed const bool &  isConsumed  )  [inline]
 

void VCF::Event::setType const uint32 type  ) 
 

void VCF::Event::setUserData void *  userData  ) 
 


Member Data Documentation

bool VCF::Event::consumed_
 

shows whether or not the event has been consumed.

primarily used by the Listener list implementation


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