Try setDisabled(<boolean value>)