public BaseField setupField(int iFieldSeq)
    {
        BaseField field = null;
        //if (iFieldSeq == 0)
        //{
        //  field = new CounterField(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
        //  field.setHidden(true);
        //}
        //if (iFieldSeq == 1)
        //{
        //  field = new RecordChangedField(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);
        //  field.setHidden(true);
        //}
        //if (iFieldSeq == 2)
        //{
        //  field = new BooleanField(this, DELETED, Constants.DEFAULT_FIELD_LENGTH, null, new Boolean(false));
        //  field.setHidden(true);
        //}
        //if (iFieldSeq == 3)
        //  field = new StringField(this, NAME, 40, null, null);
        //if (iFieldSeq == 4)
        //  field = new FolderField(this, PARENT_FOLDER_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
        //if (iFieldSeq == 5)
        //  field = new ShortField(this, SEQUENCE, Constants.DEFAULT_FIELD_LENGTH, null, null);
        //if (iFieldSeq == 6)
        //  field = new MemoField(this, COMMENT, Constants.DEFAULT_FIELD_LENGTH, null, null);
        //if (iFieldSeq == 7)
        //  field = new StringField(this, CODE, 30, null, null);
        if (iFieldSeq == 8)
            field = new PropertiesField(this, PROPERTIES, Constants.DEFAULT_FIELD_LENGTH, null, null);
        if (iFieldSeq == 9)
            field = new ScriptCommandField(this, COMMAND, Constants.DEFAULT_FIELD_LENGTH, null, "true");
        if (iFieldSeq == 10)
        {
            field = new StringField(this, SOURCE, 128, null, null);
            field.setVirtual(true);
        }
        if (iFieldSeq == 11)
        {
            field = new StringField(this, DESTINATION, 128, null, null);
            field.setVirtual(true);
        }
        if (field == null)
            field = super.setupField(iFieldSeq);
        return field;
    }
public BaseField setupField ( int iFieldSeq ) { BaseField field = null ; if ( iFieldSeq == 8 ) field = new PropertiesField ( this , PROPERTIES , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; if ( iFieldSeq == 9 ) field = new ScriptCommandField ( this , COMMAND , Constants . DEFAULT_FIELD_LENGTH , null , "true" ) ; if ( iFieldSeq == 10 ) { field = new StringField ( this , SOURCE , 128 , null , null ) ; field . setVirtual ( true ) ; } if ( iFieldSeq == 11 ) { field = new StringField ( this , DESTINATION , 128 , null , null ) ; field . setVirtual ( true ) ; } if ( field == null ) field = super . setupField ( iFieldSeq ) ; return field ; }
Add this field in the Record's field sequence.