org.kuali.kfs.module.ec.util
Class DetailLineGroup

java.lang.Object
  extended by org.kuali.kfs.module.ec.util.DetailLineGroup

public class DetailLineGroup
extends Object

grouping a set of detail lines. The class is implemented to manage: summary line and delegating line.


Constructor Summary
DetailLineGroup()
          Constructs a DetailLineGroup.java.
DetailLineGroup(EffortCertificationDetail newDetailLine)
          Constructs a DetailLineGroup.java.
 
Method Summary
 EffortCertificationDetail getDelegateDetailLine()
          Gets the delegateDetailLine attribute.
 List<EffortCertificationDetail> getDetailLines()
          Gets the detailLines attribute.
static String getKeysAsString(EffortCertificationDetail line)
          concat the keys of the given detail line as a single string
 EffortCertificationDetail getSummaryDetailLine()
          Gets the summaryDetailLine attribute.
static Map<String,DetailLineGroup> groupDetailLines(List<EffortCertificationDetail> detailLines)
          group the given detail lines by the key fields
 void setDelegateDetailLine(EffortCertificationDetail delegateDetailLine)
          Sets the delegateDetailLine attribute value.
 void setDetailLines(List<EffortCertificationDetail> detailLines)
          Sets the detailLines attribute value.
 void setSummaryDetailLine(EffortCertificationDetail summaryDetailLine)
          Sets the summaryDetailLine attribute value.
 void updateDelegateDetailLineEffort()
          update the effort percent of the delegate detail line if the effort on the summary line has been changed
 void updateDetailLineEffortPercent()
          update the effort percents of the detail lines if the effort on the summary line has been changed
 void updateDetailLinePayrollAmount()
          update the payroll amounts of the detail lines if the payroll amount on the summary line has been changed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DetailLineGroup

public DetailLineGroup()
Constructs a DetailLineGroup.java.


DetailLineGroup

public DetailLineGroup(EffortCertificationDetail newDetailLine)
Constructs a DetailLineGroup.java.

Parameters:
detailLine - the given detail line
Method Detail

updateDelegateDetailLineEffort

public void updateDelegateDetailLineEffort()
update the effort percent of the delegate detail line if the effort on the summary line has been changed


updateDetailLineEffortPercent

public void updateDetailLineEffortPercent()
update the effort percents of the detail lines if the effort on the summary line has been changed


updateDetailLinePayrollAmount

public void updateDetailLinePayrollAmount()
update the payroll amounts of the detail lines if the payroll amount on the summary line has been changed


groupDetailLines

public static Map<String,DetailLineGroup> groupDetailLines(List<EffortCertificationDetail> detailLines)
group the given detail lines by the key fields

Parameters:
detailLines - the given detail lines
keyFields - the given key fields
Returns:
the groups of detail lines

getKeysAsString

public static String getKeysAsString(EffortCertificationDetail line)
concat the keys of the given detail line as a single string

Parameters:
line - the given detail line
Returns:
a single string built from the keys of the given detail line

getSummaryDetailLine

public EffortCertificationDetail getSummaryDetailLine()
Gets the summaryDetailLine attribute.

Returns:
Returns the summaryDetailLine.

setSummaryDetailLine

public void setSummaryDetailLine(EffortCertificationDetail summaryDetailLine)
Sets the summaryDetailLine attribute value.

Parameters:
summaryDetailLine - The summaryDetailLine to set.

getDetailLines

public List<EffortCertificationDetail> getDetailLines()
Gets the detailLines attribute.

Returns:
Returns the detailLines.

setDetailLines

public void setDetailLines(List<EffortCertificationDetail> detailLines)
Sets the detailLines attribute value.

Parameters:
detailLines - The detailLines to set.

getDelegateDetailLine

public EffortCertificationDetail getDelegateDetailLine()
Gets the delegateDetailLine attribute.

Returns:
Returns the delegateDetailLine.

setDelegateDetailLine

public void setDelegateDetailLine(EffortCertificationDetail delegateDetailLine)
Sets the delegateDetailLine attribute value.

Parameters:
delegateDetailLine - The delegateDetailLine to set.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.