This factory class is used to instantiate new gadget containers. More...
#include <ilmvsw/repres.h>
Public Member Functions | |
virtual IlvGadgetContainer & | newInstance (IlsSwRepresentation *swRep, IlvDisplay *d, const char *name, const char *title, const IlvRect &dims, IlvBoolean useacc=IlvTrue, IlvBoolean visible=IlvFalse) |
Creates instances of type IlvGadgetContainer . More... | |
Static Public Member Functions | |
static IlsSwGadgetContainerFactory & | GetSingleton () |
Returns a reference to the IlsSwGadgetContainer factory. It creates a default factory if none was set. | |
static IlsSwGadgetContainerFactory * | GetSingletonPtr () |
Returns a pointer to the current class singleton. If no singleton has been declared yet, it returns the null pointer. | |
static void | SetSingleton (IlsSwGadgetContainerFactory *) |
Sets the IlsSwGadgetContainerFactory to the supplied parameter. | |
This factory class is used to instantiate new gadget containers.
Library: mvsw
The function newInstance()
is called to create new containers, unless a view parameter (Server data source or Container) has been supplied, in which case the Rogue Wave Views component uses the container supplied.
IlvGadgetContainer
(in the Rogue Wave Views Reference Manual).
|
virtual |
Creates instances of type IlvGadgetContainer
.
The parameter swRep is not necessary to create the IlvGadgetContainer
object, but it is supplied in case the factory wants to change its behavior depending on the representation being created. It may happen that the gadget container is created before the representation. If this happens, two cases can arise:
.ilv file), Server does not read the resource file specified in the dynamic view as the resource attribute. In this case, it is your responsibility to display the panel.