Package org.pentaho.mantle.client.dialogs.scheduling.ScheduleEditor

Examples of org.pentaho.mantle.client.dialogs.scheduling.ScheduleEditor.DurationValues


  @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() );
View Full Code Here


      long end = getStartHour( endTime ) * hour + getStartMin( endTime ) * minute;

      durationMilli = Math.abs( end - start );

    } else {
      DurationValues durationValues = scheduleEditor.getDurationValues();

      long minutes = durationValues.minutes * minute;
      long hours = durationValues.hours * hour;
      long days = durationValues.days * day;

 
View Full Code Here

TOP

Related Classes of org.pentaho.mantle.client.dialogs.scheduling.ScheduleEditor.DurationValues

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.