public void actionPerformed(ActionEvent e) { ICFDbTestTableObj selectedInstance = getSwingFocusAsTable(); if (selectedInstance != null) { ICFDbTestTableObj retObj = selectedInstance.testInstObjFuncNoArgs(); String msg; if (retObj != null) { msg = "testInstObjFuncNoArgs() returned a " + retObj.getClass().getName() + " named " + retObj.getObjName(); } else { msg = "testInstObjFuncNoArgs() returned null"; } JOptionPane.showMessageDialog(null, msg); } }
public void actionPerformed(ActionEvent e) { ICFDbTestTableObj selectedInstance = getSwingFocusAsTable(); if (selectedInstance != null) { List<ICFDbTestValueObj> retList = selectedInstance.testInstListFuncNoArgs(); StringBuffer buff = new StringBuffer(); if (retList != null) { buff.append("testInstListFuncNoArgs() returned list:\n"); Iterator<ICFDbTestValueObj> iter = retList.iterator(); ICFDbTestValueObj cur; while (iter.hasNext()) { cur = iter.next(); buff.append(cur.getClass().getName() + " named " + cur.getObjName() + "\n"); } } else { buff.append("testInstListFuncNoArgs() returned null\n"); } JOptionPane.showMessageDialog(null, buff.toString()); } }
public void actionPerformed(ActionEvent e) { final String S_ProcName = "actionPerformed"; ICFDbTestSchemaObj schemaObj = swingSchema.getSchema(); if (schemaObj == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "schemaObj"); } ICFDbTestTableObj retObj = schemaObj.getTableTableObj().testClassObjFuncNoArgs(); String msg; if (retObj != null) { msg = "testClassObjFuncNoArgs() returned a " + retObj.getClass().getName() + " named " + retObj.getObjName(); } else { msg = "testClassObjFuncNoArgs() returned null"; } JOptionPane.showMessageDialog(null, msg); }