public void init(Object parent, Object record)
    {
        super.init(parent, record);
        if (record instanceof FieldList)
            this.addFieldList((FieldList)record, 0);
        else
            this.addFieldList(this.buildFieldList(), 0);
        if (this.getFieldList() != null)
        {
            boolean bAddCache = true;
            if (this instanceof JScreen)
                bAddCache = false;
            this.getBaseApplet().linkNewRemoteTable(this.getFieldList(), bAddCache);
            if (this.getFieldList().getTable() != null)
            {
                if (this.getFieldList().getEditMode() == Constants.EDIT_NONE)
                {
                    try   {
                        this.getFieldList().getTable().addNew();
                    } catch (DBException ex)    {
                        ex.printStackTrace(); // Never.
                    }
                }
            }
        }
    }
public void init ( Object parent , Object record ) { super . init ( parent , record ) ; if ( record instanceof FieldList ) this . addFieldList ( ( FieldList ) record , 0 ) ; else this . addFieldList ( this . buildFieldList ( ) , 0 ) ; if ( this . getFieldList ( ) != null ) { boolean bAddCache = true ; if ( this instanceof JScreen ) bAddCache = false ; this . getBaseApplet ( ) . linkNewRemoteTable ( this . getFieldList ( ) , bAddCache ) ; if ( this . getFieldList ( ) . getTable ( ) != null ) { if ( this . getFieldList ( ) . getEditMode ( ) == Constants . EDIT_NONE ) { try { this . getFieldList ( ) . getTable ( ) . addNew ( ) ; } catch ( DBException ex ) { ex . printStackTrace ( ) ; } } } } }
Initialize this class.
@param parent Typically, you pass the BaseApplet as the parent.
@param record and the record or GridTableModel as the parent.