Gadgets > Rogue Wave Views Gadgets > Customizing the Look and Feel > Understanding the Architecture > IlvLookFeelHandler
 
IlvLookFeelHandler
The IlvLookFeelHandler class is the base class for all the look-and-feel handlers. It acts as a collection of object look-and-feel handlers and gathers properties common to a specific look. Each component that needs to be look-and-feel dependant must have an access to an instance of the IlvLookFeelHandler class. During the drawing process, the component will use this handler to draw itself. Similarly, when the component receives an event, it will use this handler to handle the event the way it is defined by the handler.
Note: Look-and-feel handlers are shared objects. You should not create them using the standard operator new, and you should not delete them.
Getting a Pointer to an IlvLookFeelHandler Object
There are three ways for a gadget to get a pointer to an IlvLookFeelHandler subclass instance:
*Object level
The method IlvGraphic::getLookFeelHandler() is used to query an object about its look-and-feel handler. The default implementation is to use the look-and-feel handler defined by the object holder.
*Holder level
The method IlvGraphicHolder::getLookFeelHandler() is used to query a holder about its look-and-feel handler. The default implementation is to use the look-and-feel handler defined by the holder display instance.
*Display level
The method IlvDisplay::getLookFeelHandler() is used to query a display instance about its look-and-feel handler. The default value is defined by the platform on which the application has been built. See the section Using the Default Look and Feel for details.

Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.