Update UndoBar.java

Made it not final and attributes protected to be possible to extend it's functionality.