Server
API Reference Guide
Product Documentation:

Rogue Wave Server
Documentation Home
List of all members | Public Member Functions | Static Public Member Functions
IlsSwGadgetContainerFactory Class Reference

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 IlsSwGadgetContainerFactoryGetSingleton ()
 Returns a reference to the IlsSwGadgetContainer factory. It creates a default factory if none was set.
 
static IlsSwGadgetContainerFactoryGetSingletonPtr ()
 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.
 

Detailed Description

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.

See also
IlvGadgetContainer (in the Rogue Wave Views Reference Manual).

Member Function Documentation

◆ newInstance()

IlvGadgetContainer & IlsSwGadgetContainerFactory::newInstance ( IlsSwRepresentation swRep,
IlvDisplay *  d,
const char *  name,
const char *  title,
const IlvRect &  dims,
IlvBoolean  useacc = IlvTrue,
IlvBoolean  visible = IlvFalse 
)
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:

  • If you fill the created container with objects (for instance, by reading an .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.
  • If you do not load any graphic object, Server reads the resource file specified in the dynamic view.