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

BooleanChoice Class Reference

A CorbaObjectChoice for boolean's. More...

Inheritance diagram for BooleanChoice::

CorbaObjectChoice List of all members.

Public Methods

 BooleanChoice (TypeCode tc)
String name ()
 Name of the type. More...

JComponent inputRes ()
 Dialog component where the user specifies the parameter. More...

JComponent inputArg ()
 Dialog component where the user specifies the result. More...

String getResult (Any resAny)
 Request management: extract result from Any (and convert it to String). More...

void setArgument (Any argsAny) throws InvalidChoiceException
 Request management: add argument to Any. More...

java.lang.Object asObject (String inText) throws InvalidChoiceException
 Returns the object introduced as that text. More...


Detailed Description

A CorbaObjectChoice for boolean's.


Constructor & Destructor Documentation

BooleanChoice::BooleanChoice TypeCode    tc [inline]
 

00022 {
00023     super(tc);
00024 }


Member Function Documentation

String BooleanChoice::name   [inline, virtual]
 

Name of the type.

Reimplemented from CorbaObjectChoice.

00027 {
00028     return "boolean";
00029 }

JComponent BooleanChoice::inputRes   [inline, virtual]
 

Dialog component where the user specifies the parameter.

Reimplemented from CorbaObjectChoice.

00032 {
00033     return null;
00034 }

JComponent BooleanChoice::inputArg   [inline, virtual]
 

Dialog component where the user specifies the result.

Reimplemented from CorbaObjectChoice.

00037 {
00038     if(_input == null) {
00039         _input = new JComboBox();
00040         _input.addItem(""+true);
00041         _input.addItem(""+false);
00042     }
00043     return _input;
00044 
00045 }

String BooleanChoice::getResult Any    resAny [inline, virtual]
 

Request management: extract result from Any (and convert it to String).

Reimplemented from CorbaObjectChoice.

00048 {
00049     boolean result;
00050     result = resAny.extract_boolean();
00051     return ""+result;
00052 }

void BooleanChoice::setArgument Any    argsAny [inline, virtual]
 

Request management: add argument to Any.

Reimplemented from CorbaObjectChoice.

00055 {
00056     Boolean b = (Boolean)asObject();
00057     argsAny.insert_boolean(b.booleanValue());
00058 }

java.lang.Object BooleanChoice::asObject String    inText [inline, virtual]
 

Returns the object introduced as that text.

Useful method to implement setArgument.

Reimplemented from CorbaObjectChoice.

00061 {
00062     return Boolean.valueOf(inText);
00063 }


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