org.jbundle.thin.base.db.FieldList.free()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(193)

本文整理了Java中org.jbundle.thin.base.db.FieldList.free()方法的一些代码示例,展示了FieldList.free()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FieldList.free()方法的具体详情如下:
包路径:org.jbundle.thin.base.db.FieldList
类名称:FieldList
方法名:free

FieldList.free介绍

[英]Free.
[中]自由的

代码示例

代码示例来源:origin: org.jbundle.thin.base.db/org.jbundle.thin.base.db

/**
 * I'm done with the model, free the resources.
 * Note: This does not free the associated record. it just nulls the reference.
 * (although freeing the record will free this table).
 */
public void free()
{
  if (m_record != null) // First, release the record for this table
  { // Do not free this.getFieldList() (may be current record)
    m_record.setTable(null);    // Don't try to free me
    m_record.free();
    m_record = null;
  }
}
/**

代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db

super.free(); // Free fields, free table.

代码示例来源:origin: org.jbundle.base/org.jbundle.base

super.free(); // Free fields, free table.

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

super.free(); // Free fields, free table.

代码示例来源:origin: com.tourgeek.thin.app/com.tourgeek.thin.app.booking

public void free()
{
  if (m_vFieldListList != null)
  {
    for (int i = m_vFieldListList.size() - 1; i >= 0; i--)
    {   // Step 1 - Disconnect the controls from the fields
      FieldList fieldList = this.getFieldList(i);
      if (fieldList != null)
      {
        this.disconnectControls(fieldList);
        if (fieldList.getOwner() == this)
          fieldList.free();
      }
    }
    if (m_vFieldListList != null)
      m_vFieldListList.clear();   // Note JBaseField.free() frees all the field lists
    m_vFieldListList = null;
  }
  // Remember to disconnect these.
  TourGeekScreen TourGeekScreen = (TourGeekScreen)this.getTargetScreen(TourGeekScreen.class);
  this.disconnectControls(TourGeekScreen.getCurrencyRecord());
  super.free();
}
/**

代码示例来源:origin: com.tourgeek.thin.app/com.tourgeek.thin.app.booking

/**
 * Free.
 */
public void free()
{
  if (this.getFieldList(MealPlan.MEAL_PLAN_FILE) != null)
  {   // Since the meal plan popup record is shared, I need to free it then disconnect it from the controls.
    this.getFieldList(MealPlan.MEAL_PLAN_FILE).free();
    FieldList fieldList = this.getFieldList();
    for (int iFieldSeq = 0; iFieldSeq < fieldList.getFieldCount(); iFieldSeq++)
    {
      FieldInfo field = fieldList.getField(iFieldSeq);
      Component component = null;
      int iIndex = 0;
      while ((component = (Component)field.getComponent(iIndex)) != null)
      {
        if (component instanceof JRemoteComboBox)
          if (((JRemoteComboBox)component).getRecord() == this.getFieldList(MealPlan.MEAL_PLAN_FILE))
            ((JRemoteComboBox)component).setRecord(null);
        iIndex++; // Bump counter
      }
    }
    this.removeFieldList(this.getFieldList(MealPlan.MEAL_PLAN_FILE));
  }
  super.free();
}
/**

相关文章