/** * 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; } /**
/** * 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); } /**
/** * 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; } /**
/** * 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; } /**
/** * 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); } /**
/** * 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; } /**
/** * 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); } /**
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);
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)
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);
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);
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);
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);
field = new XmlField(this, ACTION_DOCUMENT_TEXT, Constants.DEFAULT_FIELD_LENGTH, null, null); if (field == null) field = super.setupField(iFieldSeq);
field = new XmlField(this, ACTION_DOCUMENT_TEXT, Constants.DEFAULT_FIELD_LENGTH, null, null); if (field == null) field = super.setupField(iFieldSeq);
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);
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));
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);
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));
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);