code: public void clear() {
          getElement().clear();
          if (Config.getBoolConfigProperty(ConfigProperty.ENABLE_GUI_LOGGING)) {
              logUIAction(UIActions.CLEARED);
          }
      }
docs: Text TextField clear function
  
  To clear the text box.