scheduler.view
Class ScheduleItemLabel

java.lang.Object
  extended by scheduler.view.ScheduleItemLabel

public class ScheduleItemLabel
extends java.lang.Object


Field Summary
protected  javax.swing.JLabel firstL
          string label representing the first info of the ScheduleItem
protected  javax.swing.JLabel fullL
          string label representing the info of the ScheduleItem
protected  javax.swing.JLabel popL
          string label representing the info of the ScheduleItem for a popup window
protected  ScheduleItem si
           
 
Constructor Summary
ScheduleItemLabel(ScheduleItem si)
           
 
Method Summary
protected  ScheduleItemLabel findScheduleItemLabel(javax.swing.JLabel l)
          Find the scheduleItem that matches the given JLabel
 javax.swing.JLabel getFirstLabel()
          Return JLabel with the information for the first selected filter options
protected  void getFirstString()
          Compute a string wtih first selected filter options information
 javax.swing.JLabel getFullLabel()
          Return JLabel with full information about the scheduleItem
protected  void getFullString()
          Compute the string to represent full information of the scheduleItem
 javax.swing.JLabel getPopLabel()
          Return part of the information of the scheduleItem depending on the ViewMode, and ViewType
protected  void getPopupString()
          Compute a string to display certain information in the calendar view
 ScheduleItem getSI()
          Return the ScheduleItem object
 void jLableMouseClicked(java.awt.event.MouseEvent e)
           
protected  void setLabelColor()
          Set the text color indicating the course type Blue - Lecture Type Green - Lab Type
 void updateLabels()
          Update labels to display in the calendar view
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

si

protected ScheduleItem si

fullL

protected javax.swing.JLabel fullL
string label representing the info of the ScheduleItem


firstL

protected javax.swing.JLabel firstL
string label representing the first info of the ScheduleItem


popL

protected javax.swing.JLabel popL
string label representing the info of the ScheduleItem for a popup window

Constructor Detail

ScheduleItemLabel

public ScheduleItemLabel(ScheduleItem si)
Method Detail

getSI

public ScheduleItem getSI()
Return the ScheduleItem object

Returns:
ScheduleItem

updateLabels

public void updateLabels()
Update labels to display in the calendar view


setLabelColor

protected void setLabelColor()
Set the text color indicating the course type Blue - Lecture Type Green - Lab Type


getFullLabel

public javax.swing.JLabel getFullLabel()
Return JLabel with full information about the scheduleItem

Returns:
JLabel with full information about the scheduleItem

getFirstLabel

public javax.swing.JLabel getFirstLabel()
Return JLabel with the information for the first selected filter options

Returns:
first information selected in filter options

getPopLabel

public javax.swing.JLabel getPopLabel()
Return part of the information of the scheduleItem depending on the ViewMode, and ViewType

Returns:

getFullString

protected void getFullString()
Compute the string to represent full information of the scheduleItem


getFirstString

protected void getFirstString()
Compute a string wtih first selected filter options information


getPopupString

protected void getPopupString()
Compute a string to display certain information in the calendar view


findScheduleItemLabel

protected ScheduleItemLabel findScheduleItemLabel(javax.swing.JLabel l)
Find the scheduleItem that matches the given JLabel

Parameters:
l - - JLabel to search for
Returns:
scheduleItem object found, the result after the search

jLableMouseClicked

public void jLableMouseClicked(java.awt.event.MouseEvent e)