public int setSFieldToProperty ( ) { int iErrorCode = DBConstants . NORMAL_RETURN ; m_bJustChanged = false ; for ( int iComponent = 0 ; ; iComponent ++ ) { ScreenComponent sField = this . getComponent ( iComponent ) ; if ( sField == null ) break ; iErrorCode = sField . setSFieldToProperty ( null , DBConstants . DISPLAY , DBConstants . READ_MOVE ) ; } if ( iErrorCode == DBConstants . NORMAL_RETURN ) if ( ! this . isJustModified ( ) ) if ( this . getComponent ( 0 ) != null ) { ScreenComponent sField = this . getComponent ( 0 ) ; ComponentParent parentScreen = sField . getParentScreen ( ) ; String strParam = this . getFieldName ( false , true ) ; String strParamValue = parentScreen . getProperty ( strParam ) ; if ( strParamValue != null ) this . setString ( strParamValue , DBConstants . DISPLAY , DBConstants . READ_MOVE ) ; } return iErrorCode ; }
This is a utility method to simplify setting a single field to the field s property .