Inheritance diagram for OracleApp::

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.
|
|
||||||||||||||||
|
Reimplemented from SampleApp.
00039 {
00040 ErrorStreamArea err = new ErrorStreamArea(parent, 10, 80);
00041
00042 OutputStreamArea.println("Initializing CorbaMediator...");
00043 initCorbaMediator(args);
00044
00045 try {
00046 String ref = "corbaloc:iiop:carol.science.uva.nl:8888/Oracle";
00047 org.omg.CORBA.Object obj = CorbaMediator.instance().string_to_object(ref);
00048 _oracle = HxCorba.OracleHelper.narrow(obj);
00049
00050 if((args.length > 0) && (args[args.length-1].equals("disconnect"))) {
00051 _oracle.disconnect();
00052 OutputStreamArea.println("Disconnected");
00053 System.exit(0);
00054 }
00055
00056 }catch(Exception ex) {
00057 ErrorStreamArea.println(""+ex);
00058 System.exit(0);
00059 }
00060
00061 OutputStreamArea.println("Retrieving image list...");
00062 String[] names = _oracle.listImages();
00063
00064 OutputStreamArea.println("Building "+getSampleName()+" GUI...");
00065 JPanel gui = createContents();
00066
00067 _list.setModel(_listHandler.createModel(names));
00068
00069 _butCopy.setEnabled(false);
00070 _butProperties.setEnabled(false);
00071
00072 parent.getContentPane().add(gui);
00073 parent.pack();
00074
00075 OutputStreamArea.println("Done");
00076
00077 return true;
00078 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001