public BaseField setupField(int iFieldSeq)
    {
        BaseField field = null;
        if (iFieldSeq == 0)
            field = new StringField(this, NAME_SORT, 10, null, null);
        if (iFieldSeq == 1)
            field = new UserGroupFilter(this, USER_GROUP_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
        if (iFieldSeq == 2)
            field = new StringField(this, HEADER_TYPE, 30, null, null);
        if (iFieldSeq == 3)
            field = new StringField(this, USER, 50, null, null);
        if (iFieldSeq == 4)
            field = new PasswordField(this, PASSWORD, 80, null, null);
        if (iFieldSeq == 5)
            field = new BooleanField(this, SAVEUSER, Constants.DEFAULT_FIELD_LENGTH, null, new Boolean(true));
        if (iFieldSeq == 6)
            field = new StringField(this, STATUS_LINE, 60, null, null);
        if (iFieldSeq == 7)
        {
            field = new PasswordField(this, CURRENT_PASSWORD, 80, null, null);
            field.setMinimumLength(6);
        }
        if (iFieldSeq == 8)
        {
            field = new PasswordField(this, NEW_PASSWORD_1, 80, null, null);
            field.setMinimumLength(6);
        }
        if (iFieldSeq == 9)
        {
            field = new PasswordField(this, NEW_PASSWORD_2, 80, null, null);
            field.setMinimumLength(6);
        }
        if (iFieldSeq == 10)
            field = new HtmlField(this, TERMS, Constants.DEFAULT_FIELD_LENGTH, null, null);
        if (field == null)
            field = super.setupField(iFieldSeq);
        return field;
    }
public BaseField setupField ( int iFieldSeq ) { BaseField field = null ; if ( iFieldSeq == 0 ) field = new StringField ( this , NAME_SORT , 10 , null , null ) ; if ( iFieldSeq == 1 ) field = new UserGroupFilter ( this , USER_GROUP_ID , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; if ( iFieldSeq == 2 ) field = new StringField ( this , HEADER_TYPE , 30 , null , null ) ; if ( iFieldSeq == 3 ) field = new StringField ( this , USER , 50 , null , null ) ; if ( iFieldSeq == 4 ) field = new PasswordField ( this , PASSWORD , 80 , null , null ) ; if ( iFieldSeq == 5 ) field = new BooleanField ( this , SAVEUSER , Constants . DEFAULT_FIELD_LENGTH , null , new Boolean ( true ) ) ; if ( iFieldSeq == 6 ) field = new StringField ( this , STATUS_LINE , 60 , null , null ) ; if ( iFieldSeq == 7 ) { field = new PasswordField ( this , CURRENT_PASSWORD , 80 , null , null ) ; field . setMinimumLength ( 6 ) ; } if ( iFieldSeq == 8 ) { field = new PasswordField ( this , NEW_PASSWORD_1 , 80 , null , null ) ; field . setMinimumLength ( 6 ) ; } if ( iFieldSeq == 9 ) { field = new PasswordField ( this , NEW_PASSWORD_2 , 80 , null , null ) ; field . setMinimumLength ( 6 ) ; } if ( iFieldSeq == 10 ) field = new HtmlField ( this , TERMS , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; if ( field == null ) field = super . setupField ( iFieldSeq ) ; return field ; }
Add this field in the Record's field sequence.