code: public void setSize(ButtonSize size) {
          if (this.size != null) {
              removeStyleName(this.size.getCssName());
          }
          this.size = size;
  
          if (size != null) {
              addStyleName(size.getCssName());
          }
      }
docs: Set the buttons size.