Exemple #1
0
  /**
   * Hides the date time popup.
   *
   * <p>
   */
  private void hidePopup() {

    if (CmsDateConverter.validateTime(getTimeText())) {
      // before hiding the date picker remove the date box popup from the auto hide partners of the
      // parent popup
      if (m_autoHideParent != null) {
        m_autoHideParent.removeAutoHidePartner(getElement());
      }
      m_popup.hide();
    }
  }
Exemple #2
0
  /**
   * Checks if the String in the time input field is a valid time format.
   *
   * <p>
   *
   * @return <code>true</code> if the String in the time input field is a valid time format
   */
  private boolean isValidTime() {

    return CmsDateConverter.validateTime(getTimeText());
  }