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"} |
|
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 } |
|
00059 { 00060 return _opName != null; 00061 } |
|
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 } |
|
|