rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvSelectorInteractor Class Reference

Interactor for IlvSelector instances. More...

#include <ilviews/graphics/selector.h>

Inheritance diagram for IlvSelectorInteractor:
IlvInteractor

List of all members.

Public Member Functions

virtual IlBoolean accept (const IlvGraphic *obj) const
 Indicates whether the current interactor can be associated with a given object.
virtual IlBoolean handleEvent (IlvGraphic *obj, IlvEvent &ev, const IlvTransformer *t=0)
 Handles events received by the interactor.

Protected Member Functions

virtual void doIt (IlvSelector *selector)
 Called when objects are selected or deselected.

Detailed Description

Interactor for IlvSelector instances.

Library: views

Handles the interactive selection and deselection of objects managed by an IlvSelector instance.

The registered name of this interactor is "Selector".

See also:
IlvSelector.

Member Function Documentation

virtual IlBoolean IlvSelectorInteractor::accept ( const IlvGraphic obj  )  const [virtual]

Indicates whether the current interactor can be associated with a given object.

Parameters:
obj The considered graphic object.
Returns:
xxIlTrue if the interactor can safely be attached to obj, and xxIlFalse otherwise.
See also:
IlvGraphic::setInteractor

Reimplemented from IlvInteractor.

virtual void IlvSelectorInteractor::doIt ( IlvSelector selector  )  [protected, virtual]

Called when objects are selected or deselected.

Called when an item of the selector is selected or deselected. The user can check the selector object to find out what has been modified. The default implementation calls the callback of selector if it exists.

Parameters:
selector The selector object.
virtual IlBoolean IlvSelectorInteractor::handleEvent ( IlvGraphic g,
IlvEvent event,
const IlvTransformer t = 0 
) [virtual]

Handles events received by the interactor.

This method is the entry point of all events dispatched to this interactor.

Parameters:
g The graphic object that receives the event.
event The received event.
t The transformer applied to the view in which the event occurred.
Returns:
IlTrue if the event was successfully handled and IlFalse otherwise.

Implements IlvInteractor.


© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.