Inheritance diagram for StringChoice::

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... | |
      
  | 
  
| 
 
 
 00022 {
00023     super(tc);
00024 }
 | 
  
      
  | 
  
| 
 Name of the type. 
 Reimplemented from CorbaObjectChoice. 
 00027 {
00028     return "string";
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 JTextField();
00040         _input.addFocusListener(new HxJava.Util.SelectOnFocus());
00041     }
00042     return _input;
00043 
00044 }
 | 
  
      
  | 
  
| 
 Request management: extract result from Any (and convert it to String). 
 Reimplemented from CorbaObjectChoice. 
 00047 {
00048     return resAny.extract_string();
00049 }
 | 
  
      
  | 
  
| 
 Request management: add argument to Any. 
 Reimplemented from CorbaObjectChoice. 
 00052 {
00053     argsAny.insert_string(_input.getText());
00054 }
 | 
  
      
  | 
  
| 
 Returns the object introduced as that text. Useful method to implement setArgument. Reimplemented from CorbaObjectChoice. 
 00057 {
00058     return inText;
00059 }
 | 
  
1.2.12 written by Dimitri van Heesch,
 © 1997-2001