Class: MViewActionHandler

Declaration: Action.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

TScrollbar TDialogView TGUIPresenter TMediaView

Purpose:

MViewActionHandler is a mixin class used to derived classes that interpret actions. Derived classes control whether or not the action is dispatched to the parent view and can unify two kinds of messages into single message before passing it on to the next handler.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Classes derived from MViewActionHandler must override the member function HandleViewAction to interpret the action for which they are designed.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: MViewActionHandler::~MViewActionHandler

virtual ~ MViewActionHandler ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: MViewActionHandler::MViewActionHandler

MViewActionHandler ()

Interface Category:

API.

Purpose:

Default constructor.

Calling Context:

Called by the stream-in operators.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: MViewActionHandler::HandleViewAction

virtual bool HandleViewAction (TViewAction & action)

Interface Category:

API.

Purpose:

Handles the specified view action.

Calling Context:

Called after the action has been determined to be an MViewActionHandler.

Parameters:

Return Value:

Returns true if the action was handled, false if the action was not handled.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Deriving classes must implement this member function.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.