WICKET-1197 add/remove all buttons in Palette component

(cherry picked from commit 1f07c6e19fd7d741db54229f2058773c6b79e1ae)
Optimize imports and use Java 7 diamonds