public void populateFields() { ICFSecurityAuditActionObj popObj; ICFSecurityAuditActionObj focus = getSwingFocusAsAuditAction(); if (focus != null) { popObj = (ICFSecurityAuditActionObj) (focus.getEdit()); if (popObj == null) { popObj = focus; } } else { popObj = null; } if (getPanelMode() == CFJPanel.PanelMode.Unknown) { popObj = null; } if (popObj == null) { getSwingEditorAuditActionId().setInt16Value(null); } else { getSwingEditorAuditActionId().setInt16Value(popObj.getRequiredAuditActionId()); } if (popObj == null) { getSwingEditorDescription().setStringValue(null); } else { getSwingEditorDescription().setStringValue(popObj.getRequiredDescription()); } }
public Object getValueAt(int row, int column) { final String S_ProcName = "getValueAt"; if ((row < 0) || (column < -1)) { return (null); } if (arrayOfAuditAction == null) { return (null); } int len = arrayOfAuditAction.length; if (row >= len) { return (null); } ICFSecurityAuditActionObj obj = arrayOfAuditAction[row]; if (obj == null) { return (null); } Object retval; switch (column) { case COLID_ROW_HEADER: retval = obj; break; case COLID_OBJQUALIFIEDNAME: retval = obj.getObjQualifiedName(); break; case COLID_AUDITACTIONID: retval = new Short(obj.getRequiredAuditActionId()); break; case COLID_DESCRIPTION: retval = obj.getRequiredDescription(); if (retval == null) { retval = ""; } break; default: retval = null; break; } return (retval); }