Example #1
0
  /**
   * Validates the time and prints out an error message if the time format is incorrect.
   *
   * <p>
   */
  private void checkTime() {

    if (!isValidTime()) {
      m_time.setErrorMessageWidth(m_popup.getOffsetWidth() - 32 + Unit.PX.toString());
      m_time.setErrorMessage(Messages.get().key(Messages.ERR_DATEBOX_INVALID_TIME_FORMAT_0));
    } else if (isValidTime()) {
      m_time.setErrorMessage(null);
    }
    updateCloseBehavior();
  }