TextFieldWithHistory#setTextAndAddToHistory method added to simplify clients