Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

nui::TAbstractModelToComboBoxAdapter Class Reference

Inheritance diagram for nui::TAbstractModelToComboBoxAdapter:

List of all members.

Public Methods

 TAbstractModelToComboBoxAdapter ()
 Builds a new instance.

 TAbstractModelToComboBoxAdapter (Observable tOBSERVABLE)
abstract Integer getCode (int iINDEX)
abstract String getText (int iINDEX)
int size ()

Protected Attributes

List tInstanceList
 Instance array.


Detailed Description

Model to combo-box adapter class. It adapts a model to be displayed in a combo-box. To do so, it implements the 'observer' pattern for listening to the changes happened in the model being displayed. It also implements the 'observable' pattern for notifying to its own 'observers' for changes in this instance which need to be redisplayed.

Definition at line 42 of file TAbstractModelToComboBoxAdapter.java.


Constructor & Destructor Documentation

nui::TAbstractModelToComboBoxAdapter::TAbstractModelToComboBoxAdapter Observable    tOBSERVABLE [inline]
 

Builds a new instance. It attaches to the object tOBSERVABLE.

Parameters:
tOBSERVABLE  Subject instance to be observed (usually a model instance).

Definition at line 64 of file TAbstractModelToComboBoxAdapter.java.

References nui::TAbstractModelToComboBoxAdapter::tInstanceList.


Member Function Documentation

abstract Integer nui::TAbstractModelToComboBoxAdapter::getCode int    iINDEX [pure virtual]
 

Returns the code of the model instance at index iINDEX.

Returns:
The code of the model instance.

Referenced by nui::TModelComboBox::getSelectedCode(), and nui::TModelComboBox::setSelectedCode().

abstract String nui::TAbstractModelToComboBoxAdapter::getText int    iINDEX [pure virtual]
 

Returns the description of the model instance at index iINDEX. This is the text shown combo-box entries.

Returns:
The description of the model instance.

int nui::TAbstractModelToComboBoxAdapter::size void    [inline]
 

Returns the number of model instances.

Returns:
The number of model instances.

Definition at line 93 of file TAbstractModelToComboBoxAdapter.java.

References nui::TAbstractModelToComboBoxAdapter::tInstanceList.

Referenced by nui::TModelComboBox::setSelectedCode().


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 02:35:27 2003 for MPCL by doxygen1.2.18