@Override
public boolean isValid() {
boolean isValid = true;
if ( ENDS_TYPE.DURATION.equals( this.scheduleEditor.getBlockoutEndsType() ) ) {
DurationValues durationValues = this.scheduleEditor.getDurationValues();
isValid &= durationValues.days != 0 || durationValues.hours != 0 || durationValues.minutes != 0;
} else {
TimePicker startTimePicker = this.scheduleEditor.getStartTimePicker();
int startTimeHour = Integer.parseInt( startTimePicker.getHour() );