Пример #1
0
  /**
   * Checks if title is valid.
   *
   * @return error message or NULL.
   */
  protected String validateTitle() {
    String message = null;

    final String title = tfTitle.getText();
    if (title == null || title.trim().length() == 0) {
      message = Strings.message("guide.dialog.validation.empty.title");
    } else if (CommonUtils.areDifferent(originalTitle, title) && presentTitles.contains(title)) {
      message = Strings.message("guide.dialog.validation.already.present");
    }
    return message;
  }
Пример #2
0
 /**
  * Returns the title of the reading list the user is going to publish.
  *
  * @return the title.
  */
 public String getPublishingTitle() {
   return tfPublishingTitle.getText().trim();
 }
Пример #3
0
 /**
  * Returns the tags of the reading list the user is going to publish.
  *
  * @return the tags.
  */
 public String getPublishingTags() {
   return tfPublishingTags.getText().trim();
 }
Пример #4
0
 /**
  * Returns title entered by user.
  *
  * @return title.
  */
 public String getGuideTitle() {
   return tfTitle.getText();
 }