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, CLASS_NAME, 40, null, null);
            field.setNullable(false);
        }
        if (iFieldSeq == 4)
            field = new StringField(this, BASE_CLASS_NAME, 40, null, null);
        if (iFieldSeq == 5)
            field = new StringField(this, CLASS_DESC, 255, null, null);
        if (iFieldSeq == 6)
        {
            field = new ClassProjectField(this, CLASS_PROJECT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
            field.addListener(new InitOnceFieldHandler(null));
        }
        if (iFieldSeq == 7)
        {
            field = new StringField(this, CLASS_PACKAGE, 60, null, null);
            field.addListener(new InitOnceFieldHandler(null));
        }
        if (iFieldSeq == 8)
            field = new StringField(this, CLASS_SOURCE_FILE, 40, null, null);
        if (iFieldSeq == 9)
        {
            field = new ClassTypeField(this, CLASS_TYPE, 20, null, null);
            field.addListener(new InitOnceFieldHandler(null));
        }
        if (iFieldSeq == 10)
            field = new XmlField(this, CLASS_EXPLAIN, Constants.DEFAULT_FIELD_LENGTH, null, null);
        if (iFieldSeq == 11)
            field = new XmlField(this, CLASS_HELP, Constants.DEFAULT_FIELD_LENGTH, null, null);
        if (iFieldSeq == 12)
            field = new StringField(this, CLASS_IMPLEMENTS, 60, null, null);
        if (iFieldSeq == 13)
            field = new MemoField(this, SEE_ALSO, Constants.DEFAULT_FIELD_LENGTH, null, null);
        if (iFieldSeq == 14)
            field = new MemoField(this, TECHNICAL_INFO, Constants.DEFAULT_FIELD_LENGTH, null, null);
        if (iFieldSeq == 15)
            field = new StringField(this, COPY_DESC_FROM, 50, null, null);
        if (field == null)
            field = super.setupField(iFieldSeq);
        return field;
    }
public BaseField setupField ( int iFieldSeq ) { BaseField field = null ; if ( iFieldSeq == 3 ) { field = new StringField ( this , CLASS_NAME , 40 , null , null ) ; field . setNullable ( false ) ; } if ( iFieldSeq == 4 ) field = new StringField ( this , BASE_CLASS_NAME , 40 , null , null ) ; if ( iFieldSeq == 5 ) field = new StringField ( this , CLASS_DESC , 255 , null , null ) ; if ( iFieldSeq == 6 ) { field = new ClassProjectField ( this , CLASS_PROJECT_ID , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; field . addListener ( new InitOnceFieldHandler ( null ) ) ; } if ( iFieldSeq == 7 ) { field = new StringField ( this , CLASS_PACKAGE , 60 , null , null ) ; field . addListener ( new InitOnceFieldHandler ( null ) ) ; } if ( iFieldSeq == 8 ) field = new StringField ( this , CLASS_SOURCE_FILE , 40 , null , null ) ; if ( iFieldSeq == 9 ) { field = new ClassTypeField ( this , CLASS_TYPE , 20 , null , null ) ; field . addListener ( new InitOnceFieldHandler ( null ) ) ; } if ( iFieldSeq == 10 ) field = new XmlField ( this , CLASS_EXPLAIN , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; if ( iFieldSeq == 11 ) field = new XmlField ( this , CLASS_HELP , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; if ( iFieldSeq == 12 ) field = new StringField ( this , CLASS_IMPLEMENTS , 60 , null , null ) ; if ( iFieldSeq == 13 ) field = new MemoField ( this , SEE_ALSO , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; if ( iFieldSeq == 14 ) field = new MemoField ( this , TECHNICAL_INFO , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; if ( iFieldSeq == 15 ) field = new StringField ( this , COPY_DESC_FROM , 50 , null , null ) ; if ( field == null ) field = super . setupField ( iFieldSeq ) ; return field ; }
Add this field in the Record's field sequence.