/** * 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; }
/** * Returns the title of the reading list the user is going to publish. * * @return the title. */ public String getPublishingTitle() { return tfPublishingTitle.getText().trim(); }
/** * Returns the tags of the reading list the user is going to publish. * * @return the tags. */ public String getPublishingTags() { return tfPublishingTags.getText().trim(); }
/** * Returns title entered by user. * * @return title. */ public String getGuideTitle() { return tfTitle.getText(); }