com.pyxis.greenhopper.jira.boards.stats
Class RemainingField

java.lang.Object
  extended by com.pyxis.greenhopper.jira.boards.stats.AbstractWatchedField
      extended by com.pyxis.greenhopper.jira.boards.stats.RemainingField
All Implemented Interfaces:
WatchedField

public class RemainingField
extends AbstractWatchedField


Field Summary
static java.lang.String ID
           
 
Fields inherited from interface com.pyxis.greenhopper.jira.boards.stats.WatchedField
ALIAS
 
Constructor Summary
RemainingField()
           
 
Method Summary
 java.lang.String getTooltipLabel(I18n2 i18n, java.lang.Double value)
           
 java.lang.String getTooltipLabel(I18n i18n, java.lang.Double value)
          Retrieves the tooltip label of the watched field
 java.lang.Double getValue(com.atlassian.jira.issue.Issue issue)
          Retrieves the value for the specified Issue
 java.lang.Double getValue(java.lang.String luceneValue)
          Retrieves the value from the lucene value
 double getVelocity()
           
 boolean isASystemField()
           
 boolean isChartSupported()
           
 boolean isEditable()
           
 boolean isRemovable()
           
 java.lang.Double parse(java.lang.String value)
          Parses the value into a Double
 java.lang.String render(java.lang.Double value)
          Renders the value into a displayable String
 void saveCharts(ChartBoard chartBoard)
           
 boolean shouldReportDisplay()
           
 void trash()
           
 
Methods inherited from class com.pyxis.greenhopper.jira.boards.stats.AbstractWatchedField
equals, getId, getName, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values
Constructor Detail

RemainingField

public RemainingField()
Method Detail

getTooltipLabel

public java.lang.String getTooltipLabel(I18n i18n,
                                        java.lang.Double value)
Description copied from interface: WatchedField
Retrieves the tooltip label of the watched field

Specified by:
getTooltipLabel in interface WatchedField
Overrides:
getTooltipLabel in class AbstractWatchedField
value - the value to create the tooltip with
Returns:
the name of the watched field

getTooltipLabel

public java.lang.String getTooltipLabel(I18n2 i18n,
                                        java.lang.Double value)
Specified by:
getTooltipLabel in interface WatchedField
Overrides:
getTooltipLabel in class AbstractWatchedField

getValue

public java.lang.Double getValue(com.atlassian.jira.issue.Issue issue)
Description copied from interface: WatchedField
Retrieves the value for the specified Issue

Returns:
the value for the specified Issue

getValue

public java.lang.Double getValue(java.lang.String luceneValue)
Description copied from interface: WatchedField
Retrieves the value from the lucene value

Specified by:
getValue in interface WatchedField
Overrides:
getValue in class AbstractWatchedField
Returns:
the value from the lucene value

saveCharts

public void saveCharts(ChartBoard chartBoard)
                throws java.io.IOException
Throws:
java.io.IOException

isEditable

public boolean isEditable()
Returns:
whether or not the field can be remove

trash

public void trash()

isASystemField

public boolean isASystemField()
Returns:
whether or not it is a system field

isChartSupported

public boolean isChartSupported()
Returns:
whether or not the field supports charts

shouldReportDisplay

public boolean shouldReportDisplay()
Returns:
whether or not the field should be displayed in the reports

getVelocity

public double getVelocity()

isRemovable

public boolean isRemovable()
Specified by:
isRemovable in interface WatchedField
Overrides:
isRemovable in class AbstractWatchedField
Returns:
whether or not the field can be remove

render

public java.lang.String render(java.lang.Double value)
Description copied from interface: WatchedField
Renders the value into a displayable String

Specified by:
render in interface WatchedField
Overrides:
render in class AbstractWatchedField
Parameters:
value - to render
Returns:
the value rendered.

parse

public java.lang.Double parse(java.lang.String value)
                       throws GreenHopperException
Description copied from interface: WatchedField
Parses the value into a Double

Specified by:
parse in interface WatchedField
Overrides:
parse in class AbstractWatchedField
Parameters:
value - to parse
Returns:
the value parsed.
Throws:
GreenHopperException


Copyright © 2007-2014 Atlassian. All Rights Reserved.