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

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

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

FieldList.getField介绍

[英]Get this field in the record.
[中]在记录中获取此字段。

代码示例

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

/**
 * Get the autosequence field if it exists.
 * @return The counterfield or null.
 */
public FieldInfo getCounterField()
{
  return this.getField(Constants.MAIN_FIELD);
}
/**

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

/**
 *
 */
private void copyFieldList(FieldList fieldList, FieldList item)
{
  for (int i = 0; i < item.getFieldCount(); i++)
  {
    FieldInfo fldSource = item.getField(i);
    FieldInfo fldDest = fieldList.getField(i);
    fldDest.setData(fldSource.getData(), Constants.DISPLAY, Constants.READ_MOVE);
  }
}
/**

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

/**
 * Get this field in the record.
 * Same as getFieldInfo, but casts the field to BaseField.
 * @param iFieldSeq The sequence of the field in the record.
 * @return The field.
 */
public BaseField getField(int iFieldSeq)
{
  return (BaseField)super.getField(iFieldSeq);
}
/**

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

/**
 * Get this field in the record.
 * Same as getFieldInfo, but casts the field to BaseField.
 * @param iFieldSeq The sequence of the field in the record.
 * @return The field.
 */
public BaseField getField(int iFieldSeq)
{
  return (BaseField)super.getField(iFieldSeq);
}
/**

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

public int setPax(int iPax)
{
  return m_recMain.getField(Booking.PAX).setValue(iPax);
}
/**

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

/**
 * Get the menu name.
 */
public String getMenuName(FieldList record)
{
  return record.getField(Tour.DESCRIPTION).toString();
}
/**

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

/**
 * Get the menu icon.
 */
public String getMenuIcon(FieldList record)
{
  if (record.getField(Booking.ID).getValue() != 0)
    return "tour/buttons/Tour";   // For now
  else
    return Constants.FORM;
}
/**

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

/**
 * Add this field to this Key Area.
 * @param iFieldSeq The field to add.
 * @param bKeyArea The order (ascending/descending).
 */
public void addKeyField(int iFieldSeq, boolean bKeyOrder)
{
  this.addKeyField(m_record.getField(iFieldSeq), bKeyOrder);
}
/**

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

public int getPax()
{
  return (int)m_recMain.getField(Booking.PAX).getValue();
}
public int setPax(int iPax)

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

/**
 * Utility method to add the data in this screen field to this key in the property object.
 */
public void addScreenFieldProperty(Map properties, String strFieldName, String strKey)
{
  properties.put(strKey, this.getFieldList().getField(strFieldName).getData());
}
/**

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

public Object doGetData() 
  { // Move raw data from this field
    double dPrice = this.getRecord().getField(BookingLine.PRICE).getValue();
    double dQuantity = this.getRecord().getField(BookingLine.QUANTITY).getValue();
    double dGross = Math.floor(dPrice * dQuantity * 100 + 0.5) / 100;
    return new Double(dGross);
  }
};

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

/**
   *
   */
  public void setProductInfo(FieldList recProduct)
  {
    this.put(Product.PRODUCT_TYPE, recProduct.getField(Product.PRODUCT_TYPE).getData());
    this.put(Product.ID, recProduct.getField(Product.ID).getData());
  }
}

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

/**
 * Get this field (or return null if this field doesn't belong on the screen).
 * This is the method to use to filter the items to display on the screen.
 */
public Converter getFieldForScreen(int iIndex)
{
  if (iIndex == 2)
    return this.getFieldList().getField(TourHeader.DAYS);
  if (iIndex > 2)
    iIndex--;
  return super.getFieldForScreen(iIndex);
}
/**

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

/**
 * Free.
 */
public void free()
{
  JCellRemoteComboBox box = (JCellRemoteComboBox)this.getFieldList().getField(BookingPax.PAX_CATEGORY_ID).getComponent(0);
  box.setRecord(null);    // Don't free this record.
  box = (JCellRemoteComboBox)this.getFieldList().getField(BookingPax.PAX_CATEGORY_ID).getComponent(1);
  box.setRecord(null);    // Don't free this record.
  super.free();
}
/**

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

/**
 * Move the data record(s) to the screen controls.
 * This is usually not necessary, used only when a screen is first displayed.
 */
public void fieldsToControls()
{
  super.fieldsToControls();
  // Also need to display the local currency code.
  TourGeekScreen TourGeekScreen = (TourGeekScreen)this.getTargetScreen(TourGeekScreen.class);
  TourGeekScreen.getCurrencyRecord().getField(Currencys.CURRENCY_CODE).displayField();  // Display local currency code
}
/**

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

/**
 * Free.
 */
public void free()
{
  JRemoteComboBox box = (JRemoteComboBox)this.getFieldList().getField(BookingPax.PAX_CATEGORY_ID).getComponent(CONTROL);
  box.setRecord(null);    // Don't free this record.
  super.free();
}
/**

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

/**
 * Move the data record(s) to the screen controls.
 * This is usually not necessary, used only when a screen is first displayed.
 */
public void fieldsToControls()
{
  super.fieldsToControls();
  // Also need to display the local currency code.
  TourGeekScreen TourGeekScreen = (TourGeekScreen)this.getTargetScreen(TourGeekScreen.class);
  TourGeekScreen.getCurrencyRecord().getField(Currencys.CURRENCY_CODE).displayField();  // Display local currency code
}
/**

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.product.db

/**
 * Move the data in this record to the thin version.
 * @param fieldList.
 */
public void moveDataToThin(Record record, FieldList fieldList)
{
  if (!record.getField(OTACodes.VALUE).isNull())
    fieldList.getField(record.getField(OTACode.ID).getFieldName()).setString(record.getField(OTACodes.VALUE).toString());
  this.moveFieldToThin(fieldList.getField(record.getField(OTACodes.NAME).getFieldName()), null, record);
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.product.db

/**
 * Move the data in this record to the thin version.
 * @param fieldList.
 */
public void moveDataToThin(Record record, FieldList fieldList)
{
  if (!record.getField(OTACodes.VALUE).isNull())
    fieldList.getField(record.getField(OTACode.ID).getFieldName()).setString(record.getField(OTACodes.VALUE).toString());
  this.moveFieldToThin(fieldList.getField(record.getField(OTACodes.NAME).getFieldName()), null, record);
}
/**

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

/**
 * Redisplay the screen.
 */
public void refreshItinerary()
{
  TourGeekScreen screenMain = (TourGeekScreen)getTargetScreen(TourGeekScreen.class);
  FieldList record = screenMain.getFieldList();
  String strID = record.getField(Params.ID).toString();
  ItinScreen itinScreen = (ItinScreen)JBasePanel.getSubScreen(this, ItinScreen.class);
  itinScreen.displayItinerary(strID);        
}
/**

相关文章