com.atlassian.jira.issue.fields.layout.column
Class ColumnLayoutItemImpl

java.lang.Object
  extended by com.atlassian.jira.issue.fields.layout.column.ColumnLayoutItemImpl
All Implemented Interfaces:
ColumnLayoutItem, Comparable
Direct Known Subclasses:
ExcelColumnLayoutItem

public class ColumnLayoutItemImpl
extends Object
implements ColumnLayoutItem


Constructor Summary
ColumnLayoutItemImpl(NavigableField navigableField, int position)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 String getColumnHeadingKey()
          Return some text for the Column Header.
 String getHtml(Map displayParams, Issue issue)
           
 NavigableField getNavigableField()
           
 int getPosition()
           
 String getSafeSortOrder(String specifiedSortOrder)
           
 int hashCode()
           
 boolean isAliasForField(com.atlassian.crowd.embedded.api.User user, String jqlName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnLayoutItemImpl

public ColumnLayoutItemImpl(NavigableField navigableField,
                            int position)
Method Detail

getNavigableField

public NavigableField getNavigableField()
Specified by:
getNavigableField in interface ColumnLayoutItem

getPosition

public int getPosition()
Specified by:
getPosition in interface ColumnLayoutItem

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

getSafeSortOrder

public String getSafeSortOrder(String specifiedSortOrder)

isAliasForField

public boolean isAliasForField(com.atlassian.crowd.embedded.api.User user,
                               String jqlName)
Specified by:
isAliasForField in interface ColumnLayoutItem

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getHtml

public String getHtml(Map displayParams,
                      Issue issue)
Specified by:
getHtml in interface ColumnLayoutItem

getColumnHeadingKey

public String getColumnHeadingKey()
Description copied from interface: ColumnLayoutItem
Return some text for the Column Header. By default this calls NavigableField.getColumnHeadingKey() but implementations can override this to provide different column headings as appropriate

Specified by:
getColumnHeadingKey in interface ColumnLayoutItem
Returns:
A key, which can be run through I18nHelper.getText(String) to get a heading


Copyright © 2002-2012 Atlassian. All Rights Reserved.