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"); } List<ICFDbTestValueObj> retList = schemaObj.getTableTableObj().testClassListFuncNoArgs(); StringBuffer buff = new StringBuffer(); if (retList != null) { buff.append("testClassListFuncNoArgs() 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("testClassListFuncNoArgs() returned null\n"); } JOptionPane.showMessageDialog(null, buff.toString()); }