java.lang.Object
com.inductiveautomation.factorypmi.application.components.calendar.common.EventItem
All Implemented Interfaces:
Comparable<EventItem>

public class EventItem extends Object implements Comparable<EventItem>
  • Constructor Details

    • EventItem

      public EventItem(int id, Date startDate, Date endDate, String display, Color color)
  • Method Details

    • compareTo

      public int compareTo(EventItem o)
      Specified by:
      compareTo in interface Comparable<EventItem>
    • findEventsForDay

      public static List<EventItem> findEventsForDay(Calendar cal, Dataset events, Date date, boolean inRange)
    • isEventRecordFormat

      public static boolean isEventRecordFormat(Dataset events)
    • getColor

      public static Color getColor(Dataset events, int index)
    • getStartDate

      public static Date getStartDate(Dataset events, int index)
    • getEndDate

      public static Date getEndDate(Dataset events, int index)
    • getDisplay

      public static String getDisplay(Dataset events, int index)
    • getEvents

      public static Dataset getEvents(Calendar cal, Dataset events, Date date)
      Extract the events from the dataset that are on the same day as the date.
    • getEvents

      public static Dataset getEvents(Calendar cal, Dataset events, Date date, boolean inRange)
    • getID

      public int getID()
    • setID

      public void setID(int id)
    • getStartDate

      public Date getStartDate()
    • setStartDate

      public void setStartDate(Date startDate)
    • getEndDate

      public Date getEndDate()
    • setEndDate

      public void setEndDate(Date endDate)
    • getDisplay

      public String getDisplay()
    • setDisplay

      public void setDisplay(String display)
    • getColor

      public Color getColor()
    • setColor

      public void setColor(Color color)