Horus Doc || Java GUI Reference || Doxygen's quick Index  

StubComboBoxModel Class Reference

A ComboBoxModel for stubs from the StubRepository. More...

Inheritance diagram for StubComboBoxModel::

StubListener List of all members.

Public Methods

 StubComboBoxModel (String intfId)
void stubAdded (String intfId, String name, Object stub)
void stubRemoved (String intfId, String name)

Detailed Description

A ComboBoxModel for stubs from the StubRepository.


Constructor & Destructor Documentation

StubComboBoxModel::StubComboBoxModel String    intfId [inline]
 

00022     {
00023         _id = intfId;
00024         StubRepository.instance().addStubListener(this);
00025 
00026         if(getSize() > 0)
00027             setSelectedItem(getElementAt(0));
00028     }


Member Function Documentation

void StubComboBoxModel::stubAdded String    intfId,
String    name,
Object    stub
[inline]
 

Reimplemented from StubListener.

00031     {
00032         if(intfId.equals(_id) && (getIndexOf(name) == -1))
00033             insertElementAt(name, 0);
00034     }

void StubComboBoxModel::stubRemoved String    intfId,
String    name
[inline]
 

Reimplemented from StubListener.

00037     {
00038         if(intfId.equals(_id)) removeElement(name);
00039     }


The documentation for this class was generated from the following file:
Generated on Tue Feb 3 14:19:53 2004 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001