rwlogo

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave 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

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 *facto)
 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

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
static IlvMatrixItemEditorFactory* IlvMatrixItemEditorFactory::Get ( const IlvMatrix matrix)
static

Returns the editor factory connected to matrix.

Returns
The matrix item editor factory connected to matrix, or 0 if the matrix has no editor factory.
Parameters
matrixThe matrix.
See Also
Set.
static IlvMatrixItemEditorFactory* IlvMatrixItemEditorFactory::Set ( IlvMatrix matrix,
IlvMatrixItemEditorFactory facto 
)
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.
factoThe factory.
Returns
The old editor factory instance, if any, 0 otherwise.
See Also
Get.

© Copyright 2014, 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.