code: protected JQMButton createButton(String text, String url, DataIcon icon) {
          JQMButton button = new JQMButton(text, url);
          if (icon != null)
              button.withBuiltInIcon(icon);
          return button;
      }
docs: Internal method for creating a button