public function setRevert($value)
{
if (strcasecmp($value, 'true') == 0 || $value === true) {
$value = TDraggableRevertOptions::Revert;
} elseif (strcasecmp($value, 'false') == 0 || $value === false) {
$value = TDraggableRevertOptions::None;
}
$this->setViewState('Revert', TPropertyValue::ensureEnum($value, 'Prado\\Web\\UI\\ActiveControls\\TDraggableRevertOptions'), true);
}