code: public String getTextOrDefault(String defaultValueIfEmpty) {
          String text = getText();
          if(text.isEmpty()) {
              return defaultValueIfEmpty;
          }
          return text;
      }
docs: Helper method, it will return the content of the {@code TextBox} unless it's empty in which case it will return
  the supplied default value
  @param defaultValueIfEmpty Value to return if the {@code TextBox} is empty
  @return Text in the {@code TextBox} or {@code defaultValueIfEmpty} is the {@code TextBox} is empty