org.jbundle.base.db.Record.getFieldCount()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(7.7k)|赞(0)|评价(0)|浏览(82)

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

Record.getFieldCount介绍

暂无

代码示例

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

/**
 * Enable all the field listeners in this record according to this map.
 * @param rgbEnabledFields The field listeners (in order) to enable/disable.
 */
public void setEnableFieldListeners(Object[] rgobjEnabledFields)
{
  for (int i = 0; i < this.getFieldCount(); i++)
  {
    this.getField(i).setEnableListeners((boolean[])rgobjEnabledFields[i]);
  }
}
/**

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

/**
 * Enable all the field listeners in this record according to this map.
 * @param rgbEnabledFields The field listeners (in order) to enable/disable.
 */
public void setEnableFieldListeners(Object[] rgobjEnabledFields)
{
  for (int i = 0; i < this.getFieldCount(); i++)
  {
    this.getField(i).setEnableListeners((boolean[])rgobjEnabledFields[i]);
  }
}
/**

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

/**
 * Enable all the field listeners in this record according to this map.
 * @param rgbEnabledFields The field listeners (in order) to enable/disable.
 */
public void setEnableFieldListeners(Object[] rgobjEnabledFields)
{
  for (int i = 0; i < this.getFieldCount(); i++)
  {
    this.getField(i).setEnableListeners((boolean[])rgobjEnabledFields[i]);
  }
}
/**

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

/**
 * Get the record type from the field that specifies the record type.
 * (Override this).
 * @return The record type (as an object).
 */
public BaseField getSharedRecordTypeKey()
{
  if (this.getFieldCount() >= 2)  // Wild guess (typically the second field)
    if (this.getField(DBConstants.MAIN_FIELD + 1) instanceof IntegerField)
      return this.getField(DBConstants.MAIN_FIELD + 1);
  return null;
}
/**

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

/**
 * Get the record type from the field that specifies the record type.
 * (Override this).
 * @return The record type (as an object).
 */
public BaseField getSharedRecordTypeKey()
{
  if (this.getFieldCount() >= 2)  // Wild guess (typically the second field)
    if (this.getField(DBConstants.MAIN_FIELD + 1) instanceof IntegerField)
      return this.getField(DBConstants.MAIN_FIELD + 1);
  return null;
}
/**

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

/**
 * Select/Deselect all the fields in this record.
 * @param bSelected Set selected if true, deselect all if false.
 */
public void setSelected(boolean bSelected)
{
  int iCount = this.getFieldCount();
  for (int i = 0; i < iCount; i++)
  {
    this.getField(i).setSelected(bSelected);
  }
}
/**

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

/**
 * Select/Deselect all the fields in this record.
 * @param bSelected Set selected if true, deselect all if false.
 */
public void setSelected(boolean bSelected)
{
  int iCount = this.getFieldCount();
  for (int i = 0; i < iCount; i++)
  {
    this.getField(i).setSelected(bSelected);
  }
}
/**

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

/**
 * Get the record type from the field that specifies the record type.
 * (Override this).
 * @return The record type (as an object).
 */
public BaseField getSharedRecordTypeKey()
{
  if (this.getFieldCount() >= 2)  // Wild guess (typically the second field)
    if (this.getField(DBConstants.MAIN_FIELD + 1) instanceof IntegerField)
      return this.getField(DBConstants.MAIN_FIELD + 1);
  return null;
}
/**

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

/**
 * Select/Deselect all the fields in this record.
 * @param bSelected Set selected if true, deselect all if false.
 */
public void setSelected(boolean bSelected)
{
  int iCount = this.getFieldCount();
  for (int i = 0; i < iCount; i++)
  {
    this.getField(i).setSelected(bSelected);
  }
}
/**

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

/**
 * Number of Fields in this record.
 * @return The field count.
 */
public int getFieldCount()
{
  int iFieldCount = 0;
  for (int i = 0; i < this.getRecordlistCount(); i++)
  {
    iFieldCount += this.getRecordlistAt(i).getFieldCount();
  }
  return iFieldCount;
}
/**

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.booking.report

/**
 * SetupSFields Method.
 */
public void setupSFields()
{
  Record recBookingDetail = this.getRecord(BookingDetail.BOOKING_DETAIL_FILE);
  for (int iFieldSeq = 0; iFieldSeq < recBookingDetail.getFieldCount(); iFieldSeq++)
  {
    this.addDetailXMLColumn(recBookingDetail, iFieldSeq);
  }
  new ProductReportDetail(null, null, this, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC | HtmlConstants.HEADING_SCREEN, null);
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.report

/**
 * SetupSFields Method.
 */
public void setupSFields()
{
  Record recBookingDetail = this.getRecord(BookingDetail.BOOKING_DETAIL_FILE);
  for (int iFieldSeq = 0; iFieldSeq < recBookingDetail.getFieldCount(); iFieldSeq++)
  {
    this.addDetailXMLColumn(recBookingDetail, iFieldSeq);
  }
  new ProductReportDetail(null, null, this, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC | HtmlConstants.HEADING_SCREEN, null);
}
/**

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.booking.report

/**
 * SetupSFields Method.
 */
public void setupSFields()
{
  Record recBooking = this.getRecord(Booking.BOOKING_FILE);
  for (int iFieldSeq = 0; iFieldSeq < recBooking.getFieldCount(); iFieldSeq++)
  {
    BaseField field = recBooking.getField(iFieldSeq);
    this.addColumn(field);
  }
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.report

/**
 * SetupSFields Method.
 */
public void setupSFields()
{
  Record recBooking = this.getRecord(Booking.BOOKING_FILE);
  for (int iFieldSeq = 0; iFieldSeq < recBooking.getFieldCount(); iFieldSeq++)
  {
    BaseField field = recBooking.getField(iFieldSeq);
    this.addColumn(field);
  }
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.report

/**
 * SetupSFields Method.
 */
public void setupSFields()
{
  Record recBookingPax = this.getMainRecord();
  ((ReferenceField)recBookingPax.getField(BookingPax.BOOKING_ID)).setReferenceRecord(this.getRecord(Booking.BOOKING_FILE));
  for (int iFieldSeq = 0; iFieldSeq < recBookingPax.getFieldCount(); iFieldSeq++)
  {
    BaseField field = recBookingPax.getField(iFieldSeq);
    this.addColumn(field);
  }
}

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.report

/**
 * SetupSFields Method.
 */
public void setupSFields()
{
  Record recBookingLine = this.getMainRecord();
  ((ReferenceField)recBookingLine.getField(BookingLine.BOOKING_ID)).setReferenceRecord(this.getRecord(Booking.BOOKING_FILE));
  for (int iFieldSeq = 0; iFieldSeq < recBookingLine.getFieldCount(); iFieldSeq++)
  {
    BaseField field = recBookingLine.getField(iFieldSeq);
    this.addColumn(field);
  }
}

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.booking.report

/**
 * SetupSFields Method.
 */
public void setupSFields()
{
  Record recBookingPax = this.getMainRecord();
  ((ReferenceField)recBookingPax.getField(BookingPax.BOOKING_ID)).setReferenceRecord(this.getRecord(Booking.BOOKING_FILE));
  for (int iFieldSeq = 0; iFieldSeq < recBookingPax.getFieldCount(); iFieldSeq++)
  {
    BaseField field = recBookingPax.getField(iFieldSeq);
    this.addColumn(field);
  }
}

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.booking.report

/**
 * SetupSFields Method.
 */
public void setupSFields()
{
  Record recBookingLine = this.getMainRecord();
  ((ReferenceField)recBookingLine.getField(BookingLine.BOOKING_ID)).setReferenceRecord(this.getRecord(Booking.BOOKING_FILE));
  for (int iFieldSeq = 0; iFieldSeq < recBookingLine.getFieldCount(); iFieldSeq++)
  {
    BaseField field = recBookingLine.getField(iFieldSeq);
    this.addColumn(field);
  }
}

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.report

/**
 * SetupSFields Method.
 */
public void setupSFields()
{
  Record recBooking = this.getRecord(Booking.BOOKING_FILE);
  ((ReferenceField)recBooking.getField(Booking.TOUR_ID)).setReferenceRecord(this.getRecord(Tour.TOUR_FILE));
  for (int iFieldSeq = 0; iFieldSeq < recBooking.getFieldCount(); iFieldSeq++)
  {
    BaseField field = recBooking.getField(iFieldSeq);
    this.addColumn(field);
  }
}
/**

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.acctpay.screen

/**
 * Enable or disable this control.
 * @param bEnable If true, enable this field.
 */
public void setEnabled(boolean bEnable)
{
  // Don't call inherrited
  for (int i = 0; i < this.getMainRecord().getFieldCount(); i++)
  {
    this.getMainRecord().getField(i).setEnabled(bEnable);
  }
  this.getMainRecord().getField(ApTrx.ID).setEnabled(true);
}
/**

相关文章

微信公众号

最新文章

更多

Record类方法