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

CorbaSeqMethodDialog Class Reference

A dialog box for calling a Corba function of a sequence. More...

List of all members.

Public Methods

 CorbaSeqMethodDialog (JFrame frame, String seqName, String opName, java.lang.Object user)
 Constructor. More...

boolean valid ()
void actionPerformed (ActionEvent e)

Static Public Attributes

final String[] operations = {"length", "get", "getRange"}


Detailed Description

A dialog box for calling a Corba function of a sequence.


Constructor & Destructor Documentation

CorbaSeqMethodDialog::CorbaSeqMethodDialog JFrame    frame,
String    seqName,
String    opName,
java.lang.Object    user
[inline]
 

Constructor.

00035 {
00036     super(frame, "CorbaSeqMethodDialog", false);
00037 
00038     _user = user;
00039     _opName = opName;
00040     _seqTypeId = "IDL:HxCorba/"+seqName+":1.0";
00041 
00042     getContentPane().add(createContents());
00043     getRootPane().setDefaultButton(_butOk);
00044 
00045     if(opName.equals("length")) buildLengthDialog(seqName);
00046     else if(opName.equals("get")) buildGetDialog(seqName);
00047     else if(opName.equals("getRange")) buildGetRangeDialog(seqName);
00048     else {
00049         ErrorStreamArea.println("Operation "+opName+" not found in "+seqName);
00050         _opName = null;
00051         return;
00052     }
00053 
00054     pack();
00055     setLocationRelativeTo(null);
00056 }


Member Function Documentation

boolean CorbaSeqMethodDialog::valid   [inline]
 

00059 {
00060     return _opName != null;
00061 }

void CorbaSeqMethodDialog::actionPerformed ActionEvent    e [inline]
 

00064 {
00065     if(!(e.getSource() instanceof JButton)) { //TextField or ComboBox
00066         _butOk.requestFocus();
00067         boolean done = doInvoke();
00068         if(done) setVisible(false);
00069     }
00070     if (e.getActionCommand().equals("Apply")) {
00071         doInvoke();
00072     }
00073     else if (e.getActionCommand().equals("Ok")) {
00074         boolean done = doInvoke();
00075         if(done) setVisible(false);
00076     }
00077     else if(e.getActionCommand().equals("Cancel")) {
00078         setVisible(false);
00079     }
00080 }


Member Data Documentation

final String [] CorbaSeqMethodDialog::operations = {"length", "get", "getRange"} [static]
 


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