rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvMatrixItemEditorFactory Class Reference

Matrix Item Editor Factory class. More...

#include <ilviews/gadgets/matrix.h>

Inheritance diagram for IlvMatrixItemEditorFactory:
IlvNamedProperty

List of all members.

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.

Static Public Member Functions

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

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:
matrix The matrix where the editor will be used.
col The column of the matrix where the editor will be used.
row The 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:
matrix The 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:
matrix The matrix.
facto The factory.
Returns:
The old editor factory instance, if any, 0 otherwise.
See also:
Get.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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