public void setTime ( LocalTime optionalTime ) { // Set the text field to the supplied time, using the standard format for null, or a time. String standardTimeString = zGetStandardTextFieldTimeString ( optionalTime ) ; String textFieldString = timeTextField . getText ( ) ; // We will only change the time, when the text of the last valid time does not match the // supplied time. This will prevent any registered time change listeners from receiving // any events unless the time actually changes. if ( ( ! standardTimeString . equals ( textFieldString ) ) ) { zInternalSetTimeTextField ( standardTimeString ) ; } }
setTime This sets this time picker to the specified time . Times that are set from this function are processed through the same validation procedures as times that are entered by the user .