code: public static void setVisible(Element element, boolean visible) {
          if (element != null) {
              element.getStyle().setDisplay(visible ? "" : "none");
          }
      }
docs: shows / hide the specified element by modifying the {@code display} property.