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 {
            m_time.setErrorMessage(null);
        }
        updateCloseBehavior();
    }
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 { m_time . setErrorMessage ( null ) ; } updateCloseBehavior ( ) ; }
Validates the time and prints out an error message if the time format is incorrect.<p>