public void populateFields() {
    ICFInternetDomainBaseObj popObj;
    ICFInternetDomainBaseObj focus = getSwingFocusAsDomainBase();
    if (focus != null) {
      popObj = (ICFInternetDomainBaseObj) (focus.getEdit());
      if (popObj == null) {
        popObj = focus;
      }
    } else {
      popObj = null;
    }
    if (getPanelMode() == CFJPanel.PanelMode.Unknown) {
      popObj = null;
    }
    if (popObj == null) {
      swingOwnerTenantObj = null;
    } else {
      swingOwnerTenantObj = (ICFBamTenantObj) popObj.getRequiredOwnerTenant(swingIsInitializing);
    }
    if (swingReferenceOwnerTenant != null) {
      swingReferenceOwnerTenant.setReferencedObject(swingOwnerTenantObj);
    }

    if (popObj == null) {
      getSwingEditorId().setInt64Value(null);
    } else {
      getSwingEditorId().setInt64Value(popObj.getRequiredId());
    }

    if (popObj == null) {
      getSwingEditorDescription().setStringValue(null);
    } else {
      getSwingEditorDescription().setStringValue(popObj.getOptionalDescription());
    }
  }
 public void setRequiredContainerDomain(ICFInternetDomainBaseObj value) {
   if (buff == null) {
     getTopProjectBuff();
   }
   requiredContainerDomain = null;
   if (value != null) {
     getPKey().setRequiredTenantId(value.getRequiredTenantId());
     getTopProjectBuff().setRequiredTenantId(value.getRequiredTenantId());
     getTopProjectBuff().setRequiredDomainId(value.getRequiredId());
   }
   requiredContainerDomain = value;
 }
 public void setRequiredContainerParentDomain(ICFInternetDomainBaseObj value) {
   if (buff == null) {
     getSchemaDefBuff();
   }
   requiredContainerParentDomain = null;
   requiredOwnerCTenant = null;
   if (value != null) {
     getPKey().setRequiredTenantId(value.getRequiredTenantId());
     getSchemaDefBuff().setRequiredTenantId(value.getRequiredTenantId());
     getSchemaDefBuff().setRequiredDomainId(value.getRequiredId());
   }
   requiredContainerParentDomain = value;
 }
 public ICFInternetDomainBaseObj getRequiredContainerDomain(boolean forceRead) {
   if (forceRead || (requiredContainerDomain == null)) {
     boolean anyMissing = false;
     if (!anyMissing) {
       ICFInternetDomainBaseObj obj =
           ((ICFInternetSchemaObj) getOrigAsTopProject().getSchema())
               .getDomainBaseTableObj()
               .readDomainBaseByIdIdx(
                   getPKey().getRequiredTenantId(), getTopProjectBuff().getRequiredDomainId());
       requiredContainerDomain = obj;
       if (obj != null) {
         getTopProjectBuff().setRequiredTenantId(obj.getRequiredTenantId());
         getTopProjectBuff().setRequiredDomainId(obj.getRequiredId());
         requiredContainerDomain = obj;
       }
     }
   }
   return (requiredContainerDomain);
 }