Added UndoUIElem::setState() method.