org.kuali.kpme.tklm.time.timeblock.web
Class TimeBlockRenderer

java.lang.Object
  extended by org.kuali.kpme.tklm.time.timeblock.web.TimeBlockRenderer
All Implemented Interfaces:
TimeBlockRendererContract

public class TimeBlockRenderer
extends Object
implements TimeBlockRendererContract

Render helper to handle timeblock and time hour details display


Constructor Summary
TimeBlockRenderer(TimeBlock b)
           
 
Method Summary
 String getAmount()
          The amount of the TimeBlock object associated with the TimeBlockRenderer
 String getAssignmentClass()
          The assignmentClass associated with the TimeBlockRenderer
 List<TimeHourDetailRenderer> getDetailRenderers()
          The list of TimeHourDetailRenderer objects associated with the TimeBlockRenderer
 String getEarnCodeType()
          The earn code type of the TimeBlock object associated with the TimeBlockRenderer
 String getLunchLabel()
          TODO: Put a better comment The lunchLabel associated with the TimeBlockRenderer
 String getLunchLabelId()
          TODO: Put a better comment The lunchLabelId associated with the TimeBlockRenderer
 TimeBlock getTimeBlock()
          The TimeBlock object associated with the TimeBlockRenderer
 String getTimeRange()
          The time range associated with the TimeBlockRenderer
 String getTitle()
          The title associated with the TimeBlockRenderer
 void setAssignmentClass(String assignmentClass)
           
 void setLunchLabel(String lunchLabel)
           
 void setLunchLabelId(String lunchLabelId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeBlockRenderer

public TimeBlockRenderer(TimeBlock b)
Method Detail

getDetailRenderers

public List<TimeHourDetailRenderer> getDetailRenderers()
Description copied from interface: TimeBlockRendererContract
The list of TimeHourDetailRenderer objects associated with the TimeBlockRenderer

detailRenderers for a TimeBlockRenderer

Specified by:
getDetailRenderers in interface TimeBlockRendererContract
Returns:
detailRenderers for TimeBlockRenderer

getTimeBlock

public TimeBlock getTimeBlock()
Description copied from interface: TimeBlockRendererContract
The TimeBlock object associated with the TimeBlockRenderer

timeBlock for a TimeBlockRenderer

Specified by:
getTimeBlock in interface TimeBlockRendererContract
Returns:
timeBlock for TimeBlockRenderer

getTimeRange

public String getTimeRange()
Description copied from interface: TimeBlockRendererContract
The time range associated with the TimeBlockRenderer

If timeBlock's earn code type is T, construct a string (begin time in hh:mm aa format - end time in hh:mm aa format)

Specified by:
getTimeRange in interface TimeBlockRendererContract
Returns:
a string representation of time range for TimeBlockRenderer

getTitle

public String getTitle()
Description copied from interface: TimeBlockRendererContract
The title associated with the TimeBlockRenderer

Constructs a title string based on work area description and task description

Specified by:
getTitle in interface TimeBlockRendererContract
Returns:
work area description - task description if task is not the default one

getAmount

public String getAmount()
Description copied from interface: TimeBlockRendererContract
The amount of the TimeBlock object associated with the TimeBlockRenderer

If timeBlock's earn code type is A If timeBlock's amount is not null, "A: $x.xx" else "A: $0.00" Else ""

Specified by:
getAmount in interface TimeBlockRendererContract
Returns:
"A: $x.xx" if timeBlock's amount is not null, "A: $0.00" if null, "" if earn code type is not A

getEarnCodeType

public String getEarnCodeType()
Description copied from interface: TimeBlockRendererContract
The earn code type of the TimeBlock object associated with the TimeBlockRenderer

timeBlock.getEarnCodeType() for a TimeBlockRenderer

Specified by:
getEarnCodeType in interface TimeBlockRendererContract
Returns:
timeBlock.getEarnCodeType() for TimeBlockRenderer

getAssignmentClass

public String getAssignmentClass()
Description copied from interface: TimeBlockRendererContract
The assignmentClass associated with the TimeBlockRenderer

assignmentClass for a TimeBlockRenderer

Specified by:
getAssignmentClass in interface TimeBlockRendererContract
Returns:
assignmentClass for TimeBlockRenderer

setAssignmentClass

public void setAssignmentClass(String assignmentClass)

getLunchLabel

public String getLunchLabel()
Description copied from interface: TimeBlockRendererContract
TODO: Put a better comment The lunchLabel associated with the TimeBlockRenderer

lunchLabel for a TimeBlockRenderer

Specified by:
getLunchLabel in interface TimeBlockRendererContract
Returns:
lunchLabel for TimeBlockRenderer

setLunchLabel

public void setLunchLabel(String lunchLabel)

getLunchLabelId

public String getLunchLabelId()
Description copied from interface: TimeBlockRendererContract
TODO: Put a better comment The lunchLabelId associated with the TimeBlockRenderer

lunchLabelId for a TimeBlockRenderer

Specified by:
getLunchLabelId in interface TimeBlockRendererContract
Returns:
lunchLabelId for TimeBlockRenderer

setLunchLabelId

public void setLunchLabelId(String lunchLabelId)


Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.