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

nui::TModelComboBox Class Reference

Inheritance diagram for nui::TModelComboBox:

List of all members.

Public Methods

 TModelComboBox (TAbstractModelToComboBoxAdapter tMODEL_TO_COMBO_BOX_ADAPTER)
void setSelectedCode (Integer tCODE)
void setSelectedCode (int iCODE)
void update (Observable tOBSERVABLE, Object tARGUMENT)
Integer getSelectedCode ()

Detailed Description

Combo-box for selecting an instance from all the instances hold by a model adapter. Besides that, it implements the 'observer' pattern for listening to the changes happened in the model adapter.

Definition at line 39 of file TModelComboBox.java.


Constructor & Destructor Documentation

nui::TModelComboBox::TModelComboBox TAbstractModelToComboBoxAdapter    tMODEL_TO_COMBO_BOX_ADAPTER [inline]
 

Builds a new instance.

Parameters:
tMODEL_TO_COMBO_BOX_ADAPTER  Model to combo-box adapter instance.

Definition at line 80 of file TModelComboBox.java.


Member Function Documentation

Integer nui::TModelComboBox::getSelectedCode   [inline]
 

Returns the current selected instance with code iCODE (it is not the item index).

Returns:
The code of the current selected instance.

Definition at line 139 of file TModelComboBox.java.

References nui::TAbstractModelToComboBoxAdapter::getCode().

void nui::TModelComboBox::setSelectedCode int    iCODE [inline]
 

Selects the instance with code iCODE (it is not the item index).

Parameters:
iCODE  Code of the instance.

Definition at line 112 of file TModelComboBox.java.

References nui::TModelComboBox::setSelectedCode().

void nui::TModelComboBox::setSelectedCode Integer    tCODE [inline]
 

Selects the instance with code tCODE (it is not the item index). That code can be null.

Parameters:
tCODE  Code of the instance.

Definition at line 93 of file TModelComboBox.java.

References nui::TAbstractModelToComboBoxAdapter::getCode(), and nui::TAbstractModelToComboBoxAdapter::size().

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

void nui::TModelComboBox::update Observable    tOBSERVABLE,
Object    tARGUMENT
[inline]
 

This method is called from the observed object tOBSERVABLE to advise of a change in that object.

Parameters:
tOBSERVABLE  Observed object.
tOBJECT  An argument.
See also:
java.util.Observable.

Definition at line 124 of file TModelComboBox.java.


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