Package de.jollyday

Examples of de.jollyday.HolidayManager


    // Alignment.TOP_CENTER);

  }

  private void addDays(final Date date) {
    HolidayManager m = HolidayManager.getInstance(HolidayCalendar.POLAND);
    Calendar calendar = Calendar.getInstance();
    calendar.setTime(date);
    int actualMaximum = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);

    days.removeAllItems();
    for (int i = 1; i <= actualMaximum; i++) {
      Day day = new Day();
      day.setDay(i);
      calendar.set(Calendar.DAY_OF_MONTH, i);
      if (m.isHoliday(calendar)) {
        day.setAbsenceTime(8);
        day.setAbsenceReason("Święto");
        day.setWeekend(true);
      } else {
        int ac = calendar.get(Calendar.DAY_OF_WEEK);
View Full Code Here

TOP

Related Classes of de.jollyday.HolidayManager

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.