All Implemented Interfaces:
DynamicPropertyProvider, LocaleListener, MutableDynamicPropertyProvider, StyleProvider, ComponentLifecycle, DesignerInitializable, QualityMonitor, VisionComponent, ActionListener, MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public abstract class ScheduleView extends PMIWeekView
A customized version of the PMIWeekView that shows user schedules
See Also:
  • Field Details

  • Constructor Details

    • ScheduleView

      protected ScheduleView(LoggerEx log)
  • Method Details

    • getModel

      protected abstract AbstractScheduleModel getModel()
    • findEventsForDay

      protected List<EventItem> findEventsForDay(Date dayStart)
      Overrides:
      findEventsForDay in class PMIWeekView
    • createScheduleEvent

      protected EventItem createScheduleEvent(Date start, Date end)
    • mousePressed

      public void mousePressed(MouseEvent e)
      This is to stop the mouse events from causing repaint due to colorization.
      Specified by:
      mousePressed in interface MouseListener
      Overrides:
      mousePressed in class PMIWeekView
      Parameters:
      e - a MouseEvent
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      This is to stop the mouse events from causing repaint due to colorization.
      Specified by:
      mouseClicked in interface MouseListener
      Overrides:
      mouseClicked in class PMIWeekView
      Parameters:
      e - a MouseEvent
    • updateSchedule

      public void updateSchedule()
    • setAdjAvailable

      public void setAdjAvailable(Color color)
      Sets the highlight color of the available time blocks that are present on the view.
      Parameters:
      color - the Color the available time block text is to be set to. Must not be null
    • getAdjAvailableColor

      public Color getAdjAvailableColor()
      Gets the highlight color of the available time blocks that are present on the view.
      Returns:
      color the Color the available time block text is to be set to. Will not be null
    • getAdjUnavailableColor

      public Color getAdjUnavailableColor()
      Gets the highlight color of the unavailable time blocks that are present on the view.
      Returns:
      color the Color the unavailable time block text is to be set to. Will not be null
    • getHolidayColor

      public Color getHolidayColor()
      Gets the highlight color of the holiday time blocks that are present on the view.
      Returns:
      color the Color the holiday time block text is to be set to. Will not be null