code: public static ClickHandler onClick (final Command onClick)
      {
          return (onClick == null) ? null : new ClickHandler() {
              public void onClick (ClickEvent event) {
                  onClick.execute();
              }
          };
      }
docs: Returns a {@link ClickHandler} that executes the supplied command when triggered.