Views
Gadgets Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions | Static Public Member Functions
IlvMatrixItemEditorFactory Class Reference

Matrix Item Editor Factory class. More...

#include <ilviews/gadgets/matrix.h>

Inheritance diagram for IlvMatrixItemEditorFactory:
IlvNamedProperty IlvValueInterface

Public Member Functions

 IlvMatrixItemEditorFactory ()
 Default constructor.
 
virtual IlvMatrixItemEditorcreateEditor (IlvMatrix *matrix, IlUShort col, IlUShort row) const
 Is called to create the editor for the specified matrix location. More...
 

Static Public Member Functions

static IlvMatrixItemEditorFactoryGet (const IlvMatrix *matrix)
 Returns the editor factory connected to matrix. More...
 
static IlvMatrixItemEditorFactorySet (IlvMatrix *matrix, IlvMatrixItemEditorFactory *factory)
 Sets the specified editor factory to matrix. More...
 

Detailed Description

Matrix Item Editor Factory class.

Library: ilvadvgdt

The base class for the editor factories of IlvMatrixItemEditor objects.

See also
Set(), Get().

Member Function Documentation

◆ createEditor()

virtual IlvMatrixItemEditor* IlvMatrixItemEditorFactory::createEditor ( IlvMatrix matrix,
IlUShort  col,
IlUShort  row 
) const
virtual

Is called to create the editor for the specified matrix location.

The default implementation returns a new instance of the IlvDefaultMatrixItemEditor class.

Parameters
matrixThe matrix where the editor will be used.
colThe column of the matrix where the editor will be used.
rowThe row of the matrix where the editor will be used.
Returns
The created editor.
See also
IlvMatrixItemEditor.

◆ Get()

static IlvMatrixItemEditorFactory* IlvMatrixItemEditorFactory::Get ( const IlvMatrix matrix)
static

Returns the editor factory connected to matrix.

Parameters
matrixThe matrix.
Returns
The matrix item editor factory connected to matrix, or 0 if the matrix has no editor factory.
See also
Set().

◆ Set()

static IlvMatrixItemEditorFactory* IlvMatrixItemEditorFactory::Set ( IlvMatrix matrix,
IlvMatrixItemEditorFactory factory 
)
static

Sets the specified editor factory to matrix.

If an instance of IlvMatrixItemEditorFactory was already connected with matrix, this instance is removed, but not deleted.

Parameters
matrixThe matrix.
factoryThe factory.
Returns
The old editor factory instance, if any, 0 otherwise.
See also
Get().