Inheritance diagram for BooleanChoice::
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... |
|
00022 { 00023 super(tc); 00024 } |
|
Name of the type.
Reimplemented from CorbaObjectChoice.
00027 { 00028 return "boolean"; 00029 } |
|
Dialog component where the user specifies the parameter.
Reimplemented from CorbaObjectChoice.
00032 { 00033 return null; 00034 } |
|
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 } |
|
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 } |
|
Request management: add argument to Any.
Reimplemented from CorbaObjectChoice.
00055 { 00056 Boolean b = (Boolean)asObject(); 00057 argsAny.insert_boolean(b.booleanValue()); 00058 } |
|
Returns the object introduced as that text. Useful method to implement setArgument. Reimplemented from CorbaObjectChoice.
00061 { 00062 return Boolean.valueOf(inText); 00063 } |