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

StringChoice Class Reference

A CorbaObjectChoice for string's. More...

Inheritance diagram for StringChoice::

CorbaObjectChoice List of all members.

Public Methods

 StringChoice (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 string's.


Constructor & Destructor Documentation

StringChoice::StringChoice TypeCode    tc [inline]
 

00022 {
00023     super(tc);
00024 }


Member Function Documentation

String StringChoice::name   [inline, virtual]
 

Name of the type.

Reimplemented from CorbaObjectChoice.

00027 {
00028     return "string";
00029 }

JComponent StringChoice::inputRes   [inline, virtual]
 

Dialog component where the user specifies the parameter.

Reimplemented from CorbaObjectChoice.

00032 {
00033     return null;
00034 }

JComponent StringChoice::inputArg   [inline, virtual]
 

Dialog component where the user specifies the result.

Reimplemented from CorbaObjectChoice.

00037 {
00038     if(_input == null) {
00039         _input = new JTextField();
00040         _input.addFocusListener(new HxJava.Util.SelectOnFocus());
00041     }
00042     return _input;
00043 
00044 }

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

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

Reimplemented from CorbaObjectChoice.

00047 {
00048     return resAny.extract_string();
00049 }

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

Request management: add argument to Any.

Reimplemented from CorbaObjectChoice.

00052 {
00053     argsAny.insert_string(_input.getText());
00054 }

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

Returns the object introduced as that text.

Useful method to implement setArgument.

Reimplemented from CorbaObjectChoice.

00057 {
00058     return inText;
00059 }


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