public void populateFields() { ICFSecurityISOCurrencyObj popObj; ICFSecurityISOCurrencyObj focus = getSwingFocusAsISOCurrency(); if (focus != null) { popObj = (ICFSecurityISOCurrencyObj) (focus.getEdit()); if (popObj == null) { popObj = focus; } } else { popObj = null; } if (getPanelMode() == CFJPanel.PanelMode.Unknown) { popObj = null; } if (popObj == null) { getSwingEditorId().setInt16Value(null); } else { getSwingEditorId().setInt16Value(popObj.getRequiredId()); } if (popObj == null) { getSwingEditorISOCode().setStringValue(null); } else { getSwingEditorISOCode().setStringValue(popObj.getRequiredISOCode()); } if (popObj == null) { getSwingEditorName().setStringValue(null); } else { getSwingEditorName().setStringValue(popObj.getRequiredName()); } if (popObj == null) { getSwingEditorUnitSymbol().setStringValue(null); } else { getSwingEditorUnitSymbol().setStringValue(popObj.getOptionalUnitSymbol()); } if (popObj == null) { getSwingEditorFracSymbol().setStringValue(null); } else { getSwingEditorFracSymbol().setStringValue(popObj.getOptionalFracSymbol()); } if (popObj == null) { getSwingEditorPrecis().setInt16Value(null); } else { getSwingEditorPrecis().setInt16Value(popObj.getRequiredPrecis()); } }