Package org.projectforge.calendar

Examples of org.projectforge.calendar.DayHolder.before()


    }
    final DayHolder dh = new DayHolder(day);
    final double x1 = getXValue(day);
    for (int i = 0; i < 100; i++) { // End-less loop protection.
      dh.add(Calendar.DAY_OF_MONTH, 1);
      if (dh.isWorkingDay() == true || dh.before(toDate) == false) {
        break;
      }
    }
    final double x2 = getXValue(dh.getDate());
    g.appendChild(SVGHelper.createRect(doc, x1, 0, x2 - x1, height, SVGColor.LIGHT_GRAY, SVGColor.NONE));
View Full Code Here


        calendar.addCalendarException(date, date);
        if (log.isDebugEnabled() == true) {
          log.debug("Add holiday: " + date);
        }
      }
      if (dh.before(ganttChart.getCalculatedEndDate()) == false) {
        break;
      }
    }

    final List<GanttTask> children = ganttChart.getRootNode().getChildren();
View Full Code Here

        events.add(vEvent);
        current.add(java.util.Calendar.WEEK_OF_YEAR, 1);
        if (++paranoiaCounter > 500) {
          log.warn("Dear developer, please have a look here, paranoiaCounter exceeded! Aborting calculation of weeks of year.");
        }
      } while (current.before(to) == true);
    }
    // Integer hrPlanningUserId = NumberHelper.parseInteger(params.get(PARAM_NAME_HR_PLANNING));
    // if (hrPlanningUserId != null) {
    // if (loggedInUser.getId().equals(hrPlanningUserId) == false && isOtherUsersAllowed() == false) {
    // // Only project managers, controllers and administrative staff is allowed to subscribe time-sheets of other users.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.