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

ConfigureApp Class Reference

Inheritance diagram for ConfigureApp::

CorbaSampleApp SampleApp List of all members.

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)

Member Function Documentation

void ConfigureApp::main String    args[] [inline, static]
 

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 }

boolean ConfigureApp::buildSample JFrame    parent,
JApplet    applet,
String    args[]
[inline, protected, virtual]
 

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 }


The documentation for this class was generated from the following file:
Generated on Mon Jan 27 15:11:17 2003 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001