gwt - improvement: use setDisplay()

Code improved for maintainability: instead of setting an inline style, we just change the `display` property, leaving all other properties of the element untouched.