gpt4 book ai didi

org.jbundle.base.field.XmlField类的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 15:21:05 24 4
gpt4 key购买 nike

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

XmlField介绍

[英]A special version of the MemoField for Xml Strings.
[中]用于Xml字符串的备忘录字段的特殊版本。

代码示例

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

/**
 * Creates a new object of the same class as this object.
 * @return     a clone of this instance.
 * @exception  CloneNotSupportedException  if the object's class does not support the <code>Cloneable</code> interface.
 * @see        java.lang.Cloneable
 */
public Object clone() throws CloneNotSupportedException
{
  BaseField field = new XmlField(null, m_strFieldName, m_iMaxLength, m_strFieldDesc, null);
  field.setRecord(m_record);     // Set table without adding to table field list
  return field;
}
/**

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

/**
 * Constructor.
 * @param record The parent record.
 * @param strName The field name.
 * @param iDataLength The maximum string length (pass -1 for default).
 * @param strDesc The string description (usually pass null, to use the resource file desc).
 * @param strDefault The default value (if object, this value is the default value, if string, the string is the default).
 */
public XmlField(Record record,String strName,int iDataLength,String strDesc,Object strDefault)
{
  this();
  this.init(record, strName, iDataLength, strDesc, strDefault);
}
/**

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

/**
 * Set up the default screen control for this field.
 * @param itsLocation Location of this component on screen (ie., GridBagConstraint).
 * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout).
 * @param converter The converter to set the screenfield to.
 * @param iDisplayFieldDesc Display the label? (optional).
 * @return Return the component or ScreenField that is created for this field.
 */
public ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Map<String, Object> properties)
{
  ScreenComponent screenField = null;
  screenField = super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties);
  properties = new HashMap<String,Object>();
  properties.put(ScreenModel.FIELD, this);
  properties.put(ScreenModel.COMMAND, ScreenModel.EDIT);
  properties.put(ScreenModel.IMAGE, ScreenModel.EDIT);
  ScreenComponent pSScreenField = createScreenComponent(ScreenModel.CANNED_BOX, targetScreen.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), targetScreen, converter, iDisplayFieldDesc, properties);
  pSScreenField.setRequestFocusEnabled(false);
  return screenField;
}
/**

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

/**
 * Creates a new object of the same class as this object.
 * @return     a clone of this instance.
 * @exception  CloneNotSupportedException  if the object's class does not support the <code>Cloneable</code> interface.
 * @see        java.lang.Cloneable
 */
public Object clone() throws CloneNotSupportedException
{
  BaseField field = new XmlField(null, m_strFieldName, m_iMaxLength, m_strFieldDesc, null);
  field.setRecord(m_record);     // Set table without adding to table field list
  return field;
}
/**

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

/**
 * Constructor.
 * @param record The parent record.
 * @param strName The field name.
 * @param iDataLength The maximum string length (pass -1 for default).
 * @param strDesc The string description (usually pass null, to use the resource file desc).
 * @param strDefault The default value (if object, this value is the default value, if string, the string is the default).
 */
public XmlField(Record record,String strName,int iDataLength,String strDesc,Object strDefault)
{
  this();
  this.init(record, strName, iDataLength, strDesc, strDefault);
}
/**

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

/**
 * Creates a new object of the same class as this object.
 * @return     a clone of this instance.
 * @exception  CloneNotSupportedException  if the object's class does not support the <code>Cloneable</code> interface.
 * @see        java.lang.Cloneable
 */
public Object clone() throws CloneNotSupportedException
{
  BaseField field = new XmlField(null, m_strFieldName, m_iMaxLength, m_strFieldDesc, null);
  field.setRecord(m_record);     // Set table without adding to table field list
  return field;
}
/**

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

/**
 * Constructor.
 * @param record The parent record.
 * @param strName The field name.
 * @param iDataLength The maximum string length (pass -1 for default).
 * @param strDesc The string description (usually pass null, to use the resource file desc).
 * @param strDefault The default value (if object, this value is the default value, if string, the string is the default).
 */
public XmlField(Record record,String strName,int iDataLength,String strDesc,Object strDefault)
{
  this();
  this.init(record, strName, iDataLength, strDesc, strDefault);
}
/**

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

field = new ShortField(this, SEQUENCE, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)0));
if (iFieldSeq == 6)
  field = new XmlField(this, COMMENT, Constants.DEFAULT_FIELD_LENGTH, null, null);
  field = new StringField(this, KEYWORDS, 50, null, null);
if (iFieldSeq == 14)
  field = new XmlField(this, XML_DATA, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 15)
  field = new XmlField(this, MENUS_HELP, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (field == null)
  field = super.setupField(iFieldSeq);

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

field = new BooleanField(this, "AutoDesc", Constants.DEFAULT_FIELD_LENGTH, null, new Boolean(true));
if (iFieldSeq == kComment)
  field = new XmlField(this, "Comment", Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == kProgram)
  field = new StringField(this, "Program", 255, null, null);
  field = new XmlField(this, "XmlData", Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == kMenusHelp)
  field = new XmlField(this, "MenusHelp", Constants.DEFAULT_FIELD_LENGTH, null, null);
if (field == null)

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

field = new TourClassField(this, TOUR_CLASS_ID, 4, null, null);
if (iFieldSeq == 21)
  field = new XmlField(this, INVOICE_TEXT, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 22)
  field = new XmlField(this, ITINERARY_DESC, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (field == null)
  field = super.setupField(iFieldSeq);

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

field = new TourClassField(this, TOUR_CLASS_ID, 4, null, null);
if (iFieldSeq == 21)
  field = new XmlField(this, INVOICE_TEXT, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 22)
  field = new XmlField(this, ITINERARY_DESC, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (field == null)
  field = super.setupField(iFieldSeq);

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

field = new PropertiesField(this, PROPERTIES, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 13)
  field = new XmlField(this, ITINERARY_DESC, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 14)
  field = new ProductDescSort(this, DESC_SORT, 10, null, null);

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

field = new PropertiesField(this, PROPERTIES, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 13)
  field = new XmlField(this, ITINERARY_DESC, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 14)
  field = new ProductDescSort(this, DESC_SORT, 10, null, null);

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

field = new XmlField(this, ACTION_DOCUMENT_TEXT, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (field == null)
  field = super.setupField(iFieldSeq);

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

field = new XmlField(this, ACTION_DOCUMENT_TEXT, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (field == null)
  field = super.setupField(iFieldSeq);

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

field = new StringField(this, "MessageDataType", 30, null, null);
if (iFieldSeq == kXMLMessageData)
  field = new XmlField(this, "XMLMessageData", Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == kMessageData)
  field = new MemoField(this, "MessageData", Constants.DEFAULT_FIELD_LENGTH, null, null);

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

field = new MemoField(this, COMMENTS, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 22)
  field = new XmlField(this, ITINERARY_DESC, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 23)
  field = new ShortField(this, NIGHTS, 2, null, new Short((short)1));

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

field = new XmlField(this, ITINERARY_DESC, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 52)
  field = new PropertiesField(this, PROPERTIES, Constants.DEFAULT_FIELD_LENGTH, null, null);

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

field = new MemoField(this, COMMENTS, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 22)
  field = new XmlField(this, ITINERARY_DESC, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 23)
  field = new ShortField(this, NIGHTS, 2, null, new Short((short)1));

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

field = new XmlField(this, ITINERARY_DESC, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 52)
  field = new PropertiesField(this, PROPERTIES, Constants.DEFAULT_FIELD_LENGTH, null, null);

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com