本文整理了Java中org.jbundle.base.db.Record.getFieldCount
方法的一些代码示例,展示了Record.getFieldCount
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.getFieldCount
方法的具体详情如下:
包路径:org.jbundle.base.db.Record
类名称: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);
}
/**
内容来源于网络,如有侵权,请联系作者删除!