com.atlassian.jira.issue.fields
Class ProgressBarSystemField

java.lang.Object
  extended by com.atlassian.jira.issue.fields.AbstractField
      extended by com.atlassian.jira.issue.fields.NavigableFieldImpl
          extended by com.atlassian.jira.issue.fields.AbstractProgressBarSystemField
              extended by com.atlassian.jira.issue.fields.ProgressBarSystemField
All Implemented Interfaces:
Field, NavigableField, Comparable

public class ProgressBarSystemField
extends AbstractProgressBarSystemField

Field that displays a progress bar in the Navigator


Field Summary
 
Fields inherited from class com.atlassian.jira.issue.fields.AbstractProgressBarSystemField
jiraDurationUtils
 
Fields inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
applicationProperties, velocityManager
 
Fields inherited from class com.atlassian.jira.issue.fields.AbstractField
authenticationContext
 
Fields inherited from interface com.atlassian.jira.issue.fields.NavigableField
ORDER_ASCENDING, ORDER_DESCENDING, TEMPLATE_DIRECTORY_PATH
 
Constructor Summary
ProgressBarSystemField(com.atlassian.velocity.VelocityManager velocityManager, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, JiraDurationUtils jiraDurationUtils)
           
 
Method Summary
protected  String getDisplayId()
          Always returns 'dpb'.
protected  Long getOriginalEstimate(Issue issue)
           
protected  Long getRemainingEstimate(Issue issue)
           
 LuceneFieldSorter getSorter()
          Returns LongFieldStatisticsMapper.PROGRESS reference
protected  Long getTimeSpent(Issue issue)
           
 
Methods inherited from class com.atlassian.jira.issue.fields.AbstractProgressBarSystemField
calculateProgressPercentage, getColumnViewHtml, getHiddenFieldId
 
Methods inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
getApplicationProperties, getColumnCssClass, getColumnHeadingKey, getDefaultSortOrder, getSortComparatorSource, getVelocityParams, prettyPrintChangeHistory, prettyPrintChangeHistory, renderTemplate
 
Methods inherited from class com.atlassian.jira.issue.fields.AbstractField
compareTo, equals, getAuthenticationContext, getId, getName, getNameKey, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.fields.Field
getId, getName, getNameKey
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

ProgressBarSystemField

public ProgressBarSystemField(com.atlassian.velocity.VelocityManager velocityManager,
                              ApplicationProperties applicationProperties,
                              JiraAuthenticationContext authenticationContext,
                              JiraDurationUtils jiraDurationUtils)
Method Detail

getRemainingEstimate

protected Long getRemainingEstimate(Issue issue)
Specified by:
getRemainingEstimate in class AbstractProgressBarSystemField

getOriginalEstimate

protected Long getOriginalEstimate(Issue issue)
Specified by:
getOriginalEstimate in class AbstractProgressBarSystemField

getTimeSpent

protected Long getTimeSpent(Issue issue)
Specified by:
getTimeSpent in class AbstractProgressBarSystemField

getDisplayId

protected String getDisplayId()
Always returns 'dpb'.

Specified by:
getDisplayId in class AbstractProgressBarSystemField
Returns:
always returns 'dpb'

getSorter

public LuceneFieldSorter getSorter()
Returns LongFieldStatisticsMapper.PROGRESS reference

Returns:
LongFieldStatisticsMapper.PROGRESS reference
See Also:
DocumentIssueImpl, MappedSortComparator


Copyright © 2002-2009 Atlassian. All Rights Reserved.