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

RgbObjectChoice Class Reference

An SaObjectChoice for image display modes. More...

Inheritance diagram for RgbObjectChoice::

SaObjectChoice List of all members.

Public Methods

 RgbObjectChoice ()
void relist (String choiceType)
Object getSelectedVal ()
 Return the selected value as a proper Java Object instead of just a string. More...


Detailed Description

An SaObjectChoice for image display modes.


Constructor & Destructor Documentation

RgbObjectChoice::RgbObjectChoice   [inline]
 

00220     {
00221         super("");
00222     }


Member Function Documentation

void RgbObjectChoice::relist String    choiceType [inline]
 

Reimplemented from SaObjectChoice.

00225     {
00226         String[] names;
00227         try {
00228             HxJava.CorbaLink.CorbaMediator med =
00229                 HxJava.CorbaLink.CorbaMediator.instance();
00230             org.omg.CORBA.Object obj = med.getInitialObject("Registry");
00231             HxCorba.Registry registry = HxCorba.RegistryHelper.narrow(obj);
00232             names = registry.getValueNames("/imagefunctortable/rgb");
00233         }
00234         catch(Exception e) {
00235             names = new String[] { "Direct" };
00236         }
00237 
00238         for(int i=0; i<names.length; i++) addItem(names[i]);
00239     }

Object RgbObjectChoice::getSelectedVal   [inline]
 

Return the selected value as a proper Java Object instead of just a string.

Reimplemented from SaObjectChoice.

00242     {
00243         return getSelectedItem();
00244     }


The documentation for this class was generated from the following file:
Generated on Mon Jan 27 15:11:25 2003 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001