public void addRecord ( Rec record , boolean bMainQuery ) { if ( m_vRecordList == null ) m_vRecordList = new RecordList ( null ) ; if ( record == null ) return ; if ( ( ( Record ) record ) . getRecordOwner ( ) != null ) // Screen already here? if ( ( ( Record ) record ) . getRecordOwner ( ) != this ) // Screen already here? ( ( Record ) record ) . getRecordOwner ( ) . removeRecord ( record ) ; // Already belongs to another owner, remove it! m_vRecordList . addRecord ( record , bMainQuery ) ; if ( ( ( Record ) record ) . getRecordOwner ( ) == null ) // Screen already here? ( ( Record ) record ) . setRecordOwner ( this ) ; // This is the file for this screen }
Add this record to this screen .