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

java.lang.Object
  extended by com.pyxis.greenhopper.jira.boards.stats.AbstractWatchedField
All Implemented Interfaces:
WatchedField
Direct Known Subclasses:
AbstractWatchedCustomField, IssueCountField, RemainingField

public abstract class AbstractWatchedField
extends java.lang.Object
implements WatchedField


Field Summary
 
Fields inherited from interface com.pyxis.greenhopper.jira.boards.stats.WatchedField
ALIAS
 
Constructor Summary
AbstractWatchedField(java.lang.String id, java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getId()
          Retrieves the id of the watched field
 java.lang.String getName()
          Retrieves the name of the watched field
 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(java.lang.String luceneValue)
          Retrieves the value from the lucene value
 int hashCode()
           
 boolean isRemovable()
           
 java.lang.Double parse(java.lang.String value)
          Parses the value into a Double
 java.lang.String render(java.lang.Double number)
          Renders the value into a displayable String
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.pyxis.greenhopper.jira.boards.stats.WatchedField
getValue, isASystemField, isChartSupported, isEditable, shouldReportDisplay
 

Constructor Detail

AbstractWatchedField

public AbstractWatchedField(java.lang.String id,
                            java.lang.String name)
Method Detail

getId

public java.lang.String getId()
Description copied from interface: WatchedField
Retrieves the id of the watched field

Specified by:
getId in interface WatchedField
Returns:
the id of the watched field

getName

public java.lang.String getName()
Description copied from interface: WatchedField
Retrieves the name of the watched field

Specified by:
getName in interface WatchedField
Returns:
the name of the watched field

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
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

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
Returns:
the value from the lucene value

isRemovable

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

render

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

Specified by:
render in interface WatchedField
Parameters:
number - 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
Parameters:
value - to parse
Returns:
the value parsed.
Throws:
GreenHopperException

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2007-2012 Atlassian. All Rights Reserved.