Inheritance diagram for ConfigureApp::
Static Public Methods | |
void | main (String[] args) |
main is called when this is used as an application. More... | |
Protected Methods | |
boolean | buildSample (JFrame parent, JApplet applet, String[] args) |
|
main is called when this is used as an application. This function has to be overloaded in the "leaf node" application itself. Reimplemented from SampleApp.
00023 { 00024 ConfigureApp app = new ConfigureApp(); 00025 app.doMain(args); 00026 00027 // doMain will call buildSample 00028 } |
|
Reimplemented from SampleApp.
00032 { 00033 //OutputStreamArea out = new OutputStreamArea(10,80); 00034 ErrorStreamArea err = new ErrorStreamArea(parent, 10, 80); 00035 00036 OutputStreamArea.println("Initializing CorbaMediator..."); 00037 initCorbaMediator(args); 00038 setAdvancedLookupManager(parent); 00039 00040 _conf = ServiceRepository.instance().getConfigure(); 00041 if(_conf == null) return false; 00042 00043 String[] names = _conf.listObjectUsages(); 00044 00045 OutputStreamArea.println("Building "+getSampleName()+" GUI..."); 00046 JPanel gui = createContents(); 00047 00048 java.util.Vector vec = new java.util.Vector(); 00049 for(int i=0; i<names.length; i++) vec.add(names[i]); 00050 vec.add("- Default -"); 00051 _objList.setListData(vec); 00052 00053 _dialogs = new ObjectTypeDialog[names.length+1]; 00054 00055 parent.getContentPane().add(gui, BorderLayout.CENTER); 00056 00057 parent.setLocation(200,200); 00058 parent.setSize(300,200); 00059 00060 OutputStreamArea.println("Done."); 00061 00062 return true; 00063 } |