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


Field Summary
 
Fields inherited from interface com.atlassian.jira.issue.fields.layout.column.ColumnLayoutItem
TO_ID
 
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)
           
 String getId()
          Return the string form of the unique identifier for this column.
 NavigableField getNavigableField()
           
 int getPosition()
           
 String getSafeSortOrder(String specifiedSortOrder)
           
 int hashCode()
           
 boolean isAliasForField(ApplicationUser user, String sortField)
           
 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

getId

public String getId()
Description copied from interface: ColumnLayoutItem
Return the string form of the unique identifier for this column. When the column corresponds to a NavigableField, the id of the column will be the same as the id of the field.

Specified by:
getId in interface ColumnLayoutItem
Returns:
the id;

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

isAliasForField

public boolean isAliasForField(ApplicationUser user,
                               String sortField)
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-2014 Atlassian. All Rights Reserved.