public void setHour ( int hour ) { if ( m24Hour ) hour = Math . max ( hour , 0 ) % 24 ; else hour = Math . max ( hour , 0 ) % 12 ; if ( mHour != hour ) { int old = mHour ; mHour = hour ; if ( mOnTimeChangedListener != null ) mOnTimeChangedListener . onHourChanged ( old , mHour ) ; if ( mMode == MODE_HOUR ) invalidate ( ) ; } }
Set the selected hour value .