Пример #1
0
  /**
   * Sets the subtitle suffix text, and hides or displays the subtitle suffix depending on whether
   * the text is null or not null.
   *
   * <p>
   *
   * @param text the text to put into the subtitle suffix
   */
  public void setSubtitleSuffixText(String text) {

    if (text == null) {
      if (m_subtitleSuffix.getParent() != null) {
        m_subtitleSuffix.removeFromParent();
      }
    } else {
      if (m_subtitleSuffix.getParent() == null) {
        m_titleRow.add(m_subtitleSuffix);
      }
      m_subtitleSuffix.setText(text);
    }
    updateTruncation();
  }