public void postFields() { final String S_ProcName = "postFields"; ICFSecuritySecSessionObj focus = getSwingFocusAsSecSession(); ICFSecuritySecSessionEditObj editObj; if (focus != null) { editObj = (ICFSecuritySecSessionEditObj) (focus.getEdit()); } else { editObj = null; } if (editObj == null) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Panel is unfocused or is not editing the focus object"); } // You are not allowed to edit the Container or Owner references, so they're not retrieved swingParentSecProxyObj = (ICFDbTestSecUserObj) (swingReferenceParentSecProxy.getReferencedObject()); editObj.setRequiredParentSecProxy(swingParentSecProxyObj); editObj.setOptionalSecDevName(getSwingEditorSecDevName().getStringValue()); editObj.setRequiredStart(getSwingEditorStart().getTimestampValue()); editObj.setOptionalFinish(getSwingEditorFinish().getTimestampValue()); }
public void populateFields() { ICFSecuritySecSessionObj popObj; ICFSecuritySecSessionObj focus = getSwingFocusAsSecSession(); if (focus != null) { popObj = (ICFSecuritySecSessionObj) (focus.getEdit()); if (popObj == null) { popObj = focus; } } else { popObj = null; } if (getPanelMode() == CFJPanel.PanelMode.Unknown) { popObj = null; } if (popObj == null) { swingContainerSecUserObj = null; } else { swingContainerSecUserObj = (ICFDbTestSecUserObj) popObj.getRequiredContainerSecUser(swingIsInitializing); } if (swingReferenceContainerSecUser != null) { swingReferenceContainerSecUser.setReferencedObject(swingContainerSecUserObj); } if (popObj == null) { swingParentSecProxyObj = null; } else { swingParentSecProxyObj = (ICFDbTestSecUserObj) popObj.getRequiredParentSecProxy(swingIsInitializing); } if (swingReferenceParentSecProxy != null) { swingReferenceParentSecProxy.setReferencedObject(swingParentSecProxyObj); } if (popObj == null) { getSwingEditorSecSessionId().setUuidValue(null); } else { getSwingEditorSecSessionId().setUuidValue(popObj.getRequiredSecSessionId()); } if (popObj == null) { getSwingEditorSecDevName().setStringValue(null); } else { getSwingEditorSecDevName().setStringValue(popObj.getOptionalSecDevName()); } if (popObj == null) { getSwingEditorStart().setTimestampValue(null); } else { getSwingEditorStart().setTimestampValue(popObj.getRequiredStart()); } if (popObj == null) { getSwingEditorFinish().setTimestampValue(null); } else { getSwingEditorFinish().setTimestampValue(popObj.getOptionalFinish()); } }
public void adjustComponentEnableStates() { CFJPanel.PanelMode mode = getPanelMode(); boolean isEditing; switch (mode) { case Unknown: case View: case Delete: isEditing = false; break; case Add: case Edit: case Update: isEditing = true; break; default: isEditing = false; break; } if (isEditing) { ICFSecuritySecSessionObj focus = getSwingFocusAsSecSession(); if (focus == null) { isEditing = false; } else if (null == focus.getEdit()) { isEditing = false; } } if (swingReferenceContainerSecUser != null) { swingReferenceContainerSecUser.setEnabled(false); } if (swingReferenceParentSecProxy != null) { swingReferenceParentSecProxy.setEnabled(isEditing); } if (swingEditorSecSessionId != null) { swingEditorSecSessionId.setEnabled(false); } if (swingEditorSecDevName != null) { swingEditorSecDevName.setEnabled(isEditing); } if (swingEditorStart != null) { swingEditorStart.setEnabled(isEditing); } if (swingEditorFinish != null) { swingEditorFinish.setEnabled(isEditing); } }