Package org.japura.gui.calendar.components

Examples of org.japura.gui.calendar.components.DayOfMonthSlot


  for (int i = 0; i < columnsTotal * 6; i++) {
    if (isWeeksEnabled() && i % 8 == 0) {
    addSlot(new WeekSlot(this), CalendarComponentType.WEEK);
    } else {
    addSlot(new DayOfMonthSlot(this), CalendarComponentType.DAY_MONTH);
    }
  }

  getSlotsPanel().revalidate();
  }
View Full Code Here


  }
  gc.add(GregorianCalendar.DAY_OF_MONTH, (-1) * previous);

  List<CalendarSlot> list = slots.get(CalendarComponentType.DAY_MONTH);
  for (CalendarSlot sl : list) {
    DayOfMonthSlot dms = (DayOfMonthSlot) sl;
    int day = gc.get(GregorianCalendar.DAY_OF_MONTH);
    int month = gc.get(GregorianCalendar.MONTH);
    int year = gc.get(GregorianCalendar.YEAR);
    dms.setDate(day, month, year);
    if (month == currentMonth) {
    dms.setCurrentMonth(true);
    dms.setSelected(day == currentDay);
    } else {
    dms.setCurrentMonth(false);
    dms.setSelected(false);
    }
    gc.add(GregorianCalendar.DAY_OF_MONTH, 1);
  }
  repaint();
  }
View Full Code Here

  setDate(gc.getTimeInMillis());
  }

  public DayOfWeek getDayOfWeek(CalendarComponent cc) {
  if (cc instanceof DayOfMonthSlot) {
    DayOfMonthSlot slot = (DayOfMonthSlot) cc;
    return slot.getDayOfWeek();
  }
  if (cc instanceof DayOfWeekSlot) {
    DayOfWeekSlot slot = (DayOfWeekSlot) cc;
    return slot.getDayOfWeek();
  }
  return null;
  }
View Full Code Here

  return null;
  }

  public boolean isSelected(CalendarComponent cc) {
  if (cc instanceof DayOfMonthSlot) {
    DayOfMonthSlot slot = (DayOfMonthSlot) cc;
    return slot.isSelected();
  }
  return false;
  }
View Full Code Here

  return false;
  }

  public boolean isCurrentMonth(CalendarComponent cc) {
  if (cc instanceof DayOfMonthSlot) {
    DayOfMonthSlot slot = (DayOfMonthSlot) cc;
    return slot.isCurrentMonth();
  }
  return false;
  }
View Full Code Here

  return false;
  }

  public Integer getYear(CalendarComponent cc) {
  if (cc instanceof DayOfMonthSlot) {
    DayOfMonthSlot slot = (DayOfMonthSlot) cc;
    return slot.getYear();
  }
  return null;
  }
View Full Code Here

  return null;
  }

  public Integer getMonth(CalendarComponent cc) {
  if (cc instanceof DayOfMonthSlot) {
    DayOfMonthSlot slot = (DayOfMonthSlot) cc;
    return slot.getMonth();
  }
  return null;
  }
View Full Code Here

  return null;
  }

  public Integer getDay(CalendarComponent cc) {
  if (cc instanceof DayOfMonthSlot) {
    DayOfMonthSlot slot = (DayOfMonthSlot) cc;
    return slot.getDay();
  }
  return null;
  }
View Full Code Here

  return null;
  }

  public Date getDate(CalendarComponent cc) {
  if (cc instanceof DayOfMonthSlot) {
    DayOfMonthSlot slot = (DayOfMonthSlot) cc;
    return slot.getDate();
  }
  return null;
  }
View Full Code Here

TOP

Related Classes of org.japura.gui.calendar.components.DayOfMonthSlot

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.