/** * 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(); } }
/** * 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()); }