Which TextComponent method is used to set a TextComponent to the read-only state | Eklavya Online

Which TextComponent method is used to set a TextComponent to the read-only state

setEditable().