ui::event::FocusEvent Class Reference

Inheritance diagram for ui::event::FocusEvent:

Inheritance graph
[legend]
Collaboration diagram for ui::event::FocusEvent:

Collaboration graph
[legend]
List of all members.

Detailed Description

An event indicating that a Component has lost or gained focus. Focus can be received in several ways, including mouse clicks and keyboard input.


Public Types

enum  { FOCUS_GAINED, FOCUS_LOST }

Public Member Functions

 FocusEvent (Component *source, int id, bool temporary)
 FocusEvent (Component *source, int id, bool temporary, Component *opposite)
bool isTemporary () const
const ComponentgetOppositeComponent () const

Public Attributes

enum ui::event::FocusEvent:: { ... }  FocusEventTypes


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
FOCUS_GAINED  Identifier indicating a focus gained event.
FOCUS_LOST  Identifier indicating a focus lost event.


Constructor & Destructor Documentation

ui::event::FocusEvent::FocusEvent Component source,
int  id,
bool  temporary
 

Create a new FocusEvent.

Parameters:
source Event from where the event originated
id Event identifier, either FOCUS_LOST or FOCUS_GAINED
temporary bool determining wether this is a temporary FocusEvent.

ui::event::FocusEvent::FocusEvent Component source,
int  id,
bool  temporary,
Component opposite
 

Create a new FocusEvent.

Parameters:
source Event from where the event originated
id Event identifier, either FOCUS_LOST or FOCUS_GAINED
temporary bool determining wether this is a temporary FocusEvent.


Member Function Documentation

bool ui::event::FocusEvent::isTemporary  )  const
 

Returns true if this is a temporary FocusEvent.

const Component * ui::event::FocusEvent::getOppositeComponent  )  const
 

Returns the opposite Component, that is the Component which should receive focus after this Component.

Returns:
A pointer to the opposite component.


Generated on Mon Jun 20 19:41:57 2005 for UI by doxygen 1.3.1 using KingsTools