Inheritance diagram for InputElement::
Public Methods | |
InputElement () | |
void | componentAdded (ContainerEvent e) |
void | componentRemoved (ContainerEvent e) |
Protected Methods | |
void | doInit () |
|
00021 { 00022 int marginLF = 0; 00023 int marginUP = 0; 00024 int marginRG = 0; 00025 int marginDW = 0; 00026 int machineW = 68; 00027 int machineH = 97; 00028 00029 setSize(marginLF+machineW+marginRG, marginUP+machineH+marginDW); 00030 setMachineImage(Images.transport, marginLF, marginUP, machineW, machineH); 00031 00032 _propComp = createPropertyComponent("", marginLF+5, marginUP+76, 60); 00033 _input = createInputSocket(marginLF+15, marginUP + 32); 00034 setLayer(_input, PROP_LAYER.intValue()); //on top of machineImage 00035 00036 _input.setVisible(false); 00037 } |
|
00039 {} |
|
00042 { 00043 if((e.getChild() == this) && (_appName != null)) { 00044 CorbaMediator.instance().unregisterApp(_appName); 00045 } 00046 } |
|
Reimplemented from MachineElement.
00055 { 00056 try { 00057 ReceptorServant receptor = new ReceptorServant(); 00058 _appName = CorbaMediator.instance().registerApp(receptor, "World"); 00059 }catch(Exception e) {} 00060 00061 if(_appName == null) { 00062 turnOff("NameService can not be found"); 00063 }else{ 00064 _propComp.setText(_appName); 00065 _input.setVisible(true); 00066 } 00067 repaint(); 00068 } |