setReadOnly

fun setReadOnly(fieldName: String, value: Boolean)(source)

Makes the field read-only, or gives it back to the reader.