/**
* Method to set certain otherwise inaccessible properties of the form field object.
*
* @param string $name The property name for which to set the value.
* @param mixed $value The value of the property.
*
* @return void
*
* @since 3.2
*/
public function __set($name, $value)
{
switch ($name) {
case 'colors':
case 'control':
case 'default':
case 'display':
case 'exclude':
case 'format':
case 'keywords':
case 'saveFormat':
$this->{$name} = (string) $value;
break;
case 'split':
$this->{$name} = (int) $value;
break;
case 'preview':
$this->{$name} = (bool) $value;
break;
default:
parent::__set($name, $value);
}
}