Rememberall
Class CalendarWidget.ScheduleEvent

java.lang.Object
  extended by Rememberall.CalendarWidget.ScheduleEvent
Enclosing class:
CalendarWidget

public class CalendarWidget.ScheduleEvent
extends java.lang.Object

This class represents an event that is part of your schedule


Field Summary
 javax.swing.JCheckBox checkBox
           
 java.awt.Color color
           
 java.lang.String endTime
           
 java.lang.String startTime
           
 
Constructor Summary
CalendarWidget.ScheduleEvent(Component comp)
          This is the constructor for the ScheduleEvent class
CalendarWidget.ScheduleEvent(java.lang.String startTime, java.lang.String endTime)
           
 
Method Summary
 javax.swing.JCheckBox getCheckBox()
          This function returns the checkbox associated with this event
 java.awt.Color getColor()
          This function gets the current color that the background is set to
 void setColor(java.awt.Color color)
          This function sets the background color of the event in the display
 void updateEvent(Component comp)
          This function updates the event with data from a new Component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

checkBox

public javax.swing.JCheckBox checkBox

color

public java.awt.Color color

startTime

public java.lang.String startTime

endTime

public java.lang.String endTime
Constructor Detail

CalendarWidget.ScheduleEvent

public CalendarWidget.ScheduleEvent(java.lang.String startTime,
                                    java.lang.String endTime)

CalendarWidget.ScheduleEvent

public CalendarWidget.ScheduleEvent(Component comp)
This is the constructor for the ScheduleEvent class

Parameters:
comp - A component representing a VEVENT iCalendar event
Method Detail

getCheckBox

public javax.swing.JCheckBox getCheckBox()
This function returns the checkbox associated with this event

Returns:
The JCheckBox associated with this event

setColor

public void setColor(java.awt.Color color)
This function sets the background color of the event in the display

Parameters:
color - The color to set the background as

getColor

public java.awt.Color getColor()
This function gets the current color that the background is set to

Returns:
The color of the background

updateEvent

public void updateEvent(Component comp)
This function updates the event with data from a new Component

Parameters:
comp - The new component to get updated data from